PHP Color Average