code: public static void srgbToXyz( double r , double g , double b , double xyz[] ) {
  		xyz[0] = 0.412453*r + 0.35758*g + 0.180423*b;
  		xyz[1] = 0.212671*r + 0.71516*g + 0.072169*b;
  		xyz[2] = 0.019334*r + 0.119193*g + 0.950227*b;
  	}
docs: Conversion from normalized RGB into XYZ.  Normalized RGB values have a range of 0:1