http://www.easyrgb.com/index.php?X=MATH
http://www.easyrgb.com/index.php?X=MATH&H=01#text1
var_X = X / 100 //X from 0 to 95.047 (Observer = 2°, Illuminant = D65)
var_Y = Y / 100 //Y from 0 to 100.000
var_Z = Z / 100 //Z from 0 to 108.883