I\'m having problems converting colours from RGB to LAB space It should be straight forward using the formulas from here, only I\'m getting back the wrong values
function xyzc(c){return ((c/255)>0.04045)?Math.pow((((c/255)+0.055)/1.055),2.4)*100:(c/255)/12.92*100;}
This line will convert a rgb channel to XYZ