LCH to HEX Converter
Convert CSS lch() colors to HEX, RGB, HSL, and OKLCH. See which colors fit inside sRGB, fix out-of-gamut values, and convert lists in bulk.
Result
sRGB gamut map
Colored areas fit inside sRGB. Gray checkered areas are outside sRGB, so no HEX code can show them exactly. Drag on the map to set your color.
Lightness scale 50 to 950 (your chroma and hue)
Chroma is capped at what sRGB can hold for each lightness. Select a step to copy its HEX.
Export
Bulk LCH to HEX converter
Accepted: lch(52% 58 30), lch(52 58 30 / 50%), plain 52 58 30, and 3, 6, or 8 digit HEX codes that start with #.
Saved colors
What is an LCH to HEX converter?
An LCH to HEX converter turns a color written as lightness, chroma, and hue into a six-digit HEX code that works anywhere sRGB colors work. This converter reads CSS lch() values, shows whether the color fits inside sRGB, fixes colors that do not fit by reducing chroma or clipping, and also converts HEX back to LCH.
Key takeaways
- CSS
lch()uses CIE LCH with a D50 white point. It is not the same asoklch(). - Many LCH colors are outside sRGB. HEX cannot show them, so the tool reduces chroma or clips channels.
- The tool reports the maximum in-gamut chroma for your lightness and hue, and draws a gamut map you can click.
- You can convert lists in bulk, create a 50 to 950 lightness scale, and export CSS, SCSS, Tailwind v4, or JSON.
- Alpha creates an eight-digit HEX code.
How to use the LCH to HEX converter
You can convert a color in a few seconds. Follow these steps.
- Enter lightness, chroma, and hueType values or drag the sliders. Lightness runs from 0 to 100, chroma usually from 0 to 150, and hue from 0 to 360 degrees.
- Or paste a CSS colorPaste a value such as lch(52% 58 30) or lch(52 58 30 / 80%) into the paste field and select Apply. You can also paste a HEX code to convert it to LCH.
- Choose how to handle out-of-gamut colorsMany LCH colors cannot be shown in sRGB. Choose Reduce chroma to keep lightness and hue, or Clip channels to cut each RGB channel at its limit.
- Read the HEX result and the gamut statusThe tool shows the HEX code, RGB, HSL, OKLCH, contrast against white and black, and how much chroma sRGB can hold at your lightness and hue.
- Explore the gamut mapThe slice map shows which colors fit inside sRGB. Select any point on the map to set your color, and switch between hue by chroma and lightness by chroma views.
- Copy or exportCopy HEX, CSS, SCSS, Tailwind v4, or JSON, generate a 50 to 950 lightness scale, convert a list of values in bulk, save colors, or share a link.
What is LCH?
LCH is the cylindrical form of CIELAB. Instead of the two color-opponent axes a and b, it describes a color with three values that are easier to reason about:
- L (lightness) runs from 0 for black to 100 for white.
- C (chroma) is how colorful the color is. A chroma of 0 is a neutral gray.
- H (hue) is the angle around the color wheel in degrees, from 0 to 360.
CSS Color Level 4 added the lch() function, so you can write colors such as lch(52% 58 30) directly in a stylesheet. Because LCH can describe colors beyond sRGB, a converter has to decide what to do when a color is outside the HEX range, which is why this tool shows a gamut status for every result.
How to convert LCH to HEX: the math
The converter follows the pipeline defined in the CSS Color specification. You can reproduce it in any language.
- LCH to Lab.
a = C × cos(H)andb = C × sin(H), with H in radians. - Lab to XYZ (D50). Compute
fy = (L + 16) / 116,fx = a / 500 + fy, andfz = fy − b / 200. Invert the cube-root function and scale by the D50 white point. - D50 to D65. Apply the Bradford chromatic adaptation matrix, because sRGB uses a D65 white point.
- XYZ to linear sRGB. Multiply by the XYZ to linear sRGB matrix.
- Gamma encode. Apply the sRGB transfer function to each channel.
- Round to HEX. Scale each channel to 0 to 255 and write two hex digits per channel.
If any linear channel falls below 0 or above 1 after step 4, the color is outside sRGB and needs gamut handling before step 5.
Example conversions
| LCH color | HEX result | Note |
|---|---|---|
lch(100% 0 0) | #FFFFFF | White |
lch(70% 0 0) | about #ABABAB | Neutral light gray |
lch(50% 0 0) | about #777777 | Neutral mid gray |
lch(0% 0 0) | #000000 | Black |
lch(54.29% 106.84 40.85) | about #FF0000 | sRGB red, at the edge of the gamut |
LCH, OKLCH, and HSL compared
| Model | Based on | CSS function | Strengths | Watch out for |
|---|---|---|---|---|
| LCH | CIELAB, D50 white point | lch() | Perceptual lightness, covers wide gamuts, matches print workflows | Blues can shift toward purple as chroma changes |
| OKLCH | Oklab, D65 white point | oklch() | More even lightness and hue, good for palettes and gradients | Numbers are not interchangeable with LCH |
| HSL | RGB geometry | hsl() | Simple, familiar | Equal L values do not look equally light |
For new design systems, many teams prefer OKLCH for its more even behavior. LCH remains useful when you work with specifications, print workflows, or tools that use CIELAB. To work in OKLCH, use the OKLCH Color Picker or convert HEX codes with the HEX to OKLCH Converter.
Out-of-gamut LCH colors explained
A gamut is the range of colors a display or color space can reproduce. HEX codes describe sRGB, which is smaller than the range that LCH can describe. A color such as a very saturated cyan at medium lightness may exist in LCH but fall outside sRGB. The tool tests every conversion and tells you if the color fits.
- Reduce chroma lowers the chroma in small steps while it keeps lightness and hue, then returns the most colorful in-gamut result. This usually looks closest to your intent.
- Clip RGB channels cuts each channel at 0 or 255. It is fast, but it can shift hue and lightness.
Browsers that support lch() use the CSS Color 4 gamut mapping method in OKLCH when a color does not fit the display, so a browser result can differ slightly from the HEX shown here. On a wide-gamut display, the browser can show colors that no HEX code can represent. The second swatch in the tool shows what your own browser draws for the entered lch() value.
Use LCH colors in CSS with a HEX fallback
List the HEX value first and the lch() value second. Browsers that do not understand lch() keep the HEX color.
.button {
background: #D14B2A;
background: lch(52% 58 30);
}
To avoid duplication, store both formats as custom properties and let the converter export them. For a full lightness ramp, open the Tailwind v4 export tab or try the Tailwind Shade Generator.
Common LCH conversion mistakes
- Treating
lch()asoklch(). The same numbers give different colors, so convert each with the right tool. - Forgetting the D50 white point. Skipping the Bradford step makes grays look slightly tinted and shifts every color.
- Ignoring gamut. A HEX code made by clipping can change hue. Check the gamut status before you ship a color.
- Using percent for chroma by accident. In CSS, a chroma percentage maps 100 percent to 150, so
lch(50% 50% 30)means a chroma of 75. - Assuming equal L means equal contrast. Lightness is perceptual, but WCAG contrast uses relative luminance. Verify text pairs with the Color Contrast Checker.
Frequently asked questions
What is an LCH to HEX converter?
An LCH to HEX converter turns a color written in lightness, chroma, and hue into a six-digit HEX code that works anywhere sRGB colors work. This tool converts CSS lch() values, shows whether the color fits inside sRGB, and fixes colors that do not fit.
How do I convert LCH to HEX?
Enter the L, C, and H values or paste a CSS lch() color, and read the HEX result. Behind the scenes the tool converts LCH to Lab, Lab to XYZ with a D50 white point, XYZ to D65 with Bradford adaptation, XYZ to linear sRGB, and then applies the sRGB transfer curve and writes the HEX code.
Is CSS lch() the same as oklch()?
No. CSS lch() uses CIE LCH, which is built on CIELAB with a D50 white point. CSS oklch() uses the newer Oklab space, which was designed for more even lightness and hue. The same numbers produce different colors in each function.
What do L, C, and H mean in LCH?
L is lightness from 0 (black) to 100 (white). C is chroma, the colorfulness of the color, where 0 is gray. H is the hue angle in degrees around the color wheel, from 0 to 360.
What happens when an LCH color is out of gamut?
The color has a chroma that sRGB cannot display at that lightness and hue. HEX only describes sRGB, so the tool either reduces chroma until the color fits, or clips the RGB channels. Reducing chroma keeps lightness and hue, which usually looks closer to what you intended.
What is the maximum chroma for LCH?
LCH has no hard upper limit, and CSS treats 150 as the reference range for percentage values. What matters in practice is how much chroma your target gamut can show. The tool reports the maximum in-gamut chroma for your current lightness and hue.
Will the HEX match what my browser shows for lch()?
On a standard sRGB display, an in-gamut color matches closely. For out-of-gamut colors, browsers use the CSS Color 4 gamut mapping method in OKLCH, while this tool reduces chroma in LCH, so the HEX can differ slightly. On wide-gamut displays, a browser can show colors that no HEX code can represent.
Can I convert HEX to LCH?
Yes. Paste a HEX code into the paste field and select Apply. The tool converts it to LCH and fills in the L, C, and H controls. For OKLCH, use the HEX to OKLCH converter.
Why does the tool use a D50 white point?
The CSS Color specification defines lch() and lab() relative to the D50 white point, while sRGB uses D65. The tool applies Bradford chromatic adaptation between the two so that grays stay neutral and colors match the specification.
Does the converter support transparency?
Yes. Set the alpha slider below 100 percent and the tool adds an alpha pair to create an eight-digit HEX code, and it writes the alpha in the CSS lch() output.
What is the difference between LCH and HCL?
People sometimes use HCL as another name for LCH, but HCL often refers to the polar form of CIELUV rather than CIELAB. The two give different results, so check which model a tool or library uses.
Is the LCH to HEX converter free and private?
Yes. It is free, needs no account, and runs in your browser. Saved colors stay in your own browser storage.