These are the formulas used by our Color Calculator to convert color data in different color spaces.
Each conversion formula is written as a "neutral programming function", easy to be translate in any specific programming language:
These are formulas used to calculate color difference (Δ) in the CIE-L*ab and CIE-L*CH° spaces: