LCH to HEX Web Formatter
Convert LCH(ab) lightness, chroma and hue to a HEX code. Pipeline: LCH to Lab to XYZ to linear sRGB with out-of-gamut detection and clipping fallback.
Input
Result
#577FD8rgb(87, 127, 216)Technical Specification & Mathematical Principles
How the LCH to HEX Converter Works
The forward path is LCH to Lab (a* = C cos H, b* = C sin H), Lab to XYZ with the inverse CIE function and D65 white, XYZ to linear sRGB with the inverse matrix, and finally the sRGB transfer function to produce 8-bit channels.
High chroma values frequently fall outside the sRGB gamut. The tool detects channels outside 0 to 1, shows a gamut warning, and clips so the preview and HEX code always stay displayable. For hue-preserving gamut mapping consider reducing chroma until the color fits.
Frequently Asked Questions
Why do some LCH inputs show a gamut warning?
How can I keep the hue when a color is out of gamut?
Are L values above 100 allowed?
Related Design & Color Instruments
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.
LCH to LAB Converter
Convert LCH(ab) to CIE-Lab with a = C cos(H) and b = C sin(H). See live L, a and b values with a color swatch, calculated locally in your browser.
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.
OKLCH to HEX Converter
Convert modern OKLCH coordinates back to sRGB hexadecimal strings with accurate gamut mapping.