HEX to CIE-Lab* Converter
Convert any HEX color to CIE-Lab* (D65) instantly. See L*, a*, b* values, the CSS lab() function, and the full sRGB to XYZ to Lab math in your browser.
Input
Result
55.6317.54-64.4255.63, 17.54, -64.42lab(55.6% 17.5 -64.4)Technical Specification & Mathematical Principles
How the HEX to LAB Converter Works
The conversion runs three stages. First each sRGB channel is linearized by removing the gamma curve: c_lin = c / 12.92 when c <= 0.04045, otherwise ((c + 0.055) / 1.055)^2.4. Second, the linear triple is multiplied by the sRGB to XYZ matrix for the D65 white point (X = 0.4124564 R + 0.3575761 G + 0.1804375 B, and so on for Y and Z).
Third, XYZ is normalized by the D65 reference white (Xn = 95.047, Yn = 100, Zn = 108.883) and passed through the CIE function f(t) = t^(1/3) for t > 216/24389, or (903.2963 t + 16) / 116 otherwise. Then L* = 116 f(Y/Yn) - 16, a* = 500 (f(X/Xn) - f(Y/Yn)) and b* = 200 (f(Y/Yn) - f(Z/Zn)).
Frequently Asked Questions
What is CIE-Lab* and why is it called perceptually based?
Which white point does this converter use?
Can I use the result directly in CSS?
Related Design & Color Instruments
LAB to HEX Converter
Turn CIE-Lab* (D65) values into a web-ready HEX code. Out-of-gamut colors are flagged and clipped to the nearest displayable sRGB value in your browser.
HEX to LCH Converter
Convert HEX to LCH(ab) through the full sRGB, CIE-XYZ, CIE-Lab pipeline. Get lightness, chroma and hue angle with copy-ready output, 100% client-side.
Delta E Calculator
Calculate CIEDE2000 (ΔE00) between two colors with perceptibility badges: imperceptible, close observation or noticeable. Also shows CIE76 for comparison.
HEX to OKLCH Converter
Transform standard sRGB colors into the perceptually uniform OKLCH color space (Lightness, Chroma, Hue).