GPHIGS transforms the RGB components of each color into an intensity of grey by means of the following formula:
I = 0.3*R + 0.59*G + 0.11*B