EasyRGB
Compare
CompareFind similar colors
Match
MatchMatch color data
Create
CreateCreate complements
Convert
ConvertConvert color data

Color math and programming code examples

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: