TXT · Text & Data tools

OKLCH to HEX Converter

Active color#000000

oklch(0% 0 0)

OKLCH Input
Hex Output
1Active Line0Valid Items
Go To Full Color Converter

Convert OKLCH color values into a hexadecimal color code.

Input formats

Provide colors using oklch(L C H) syntax: lightness as a percentage, chroma as a plain number, and hue as a degree value from 0 to 360. Each line is parsed independently in batch mode.

Hex output

The output is formatted as a 6-digit hex code in uppercase (#RRGGBB). oklch(68.04% 0.21 33.69) becomes #FF5733.

Chroma and gamut limits

Not every lightness, chroma, and hue combination fits inside sRGB. When chroma is set too high for a given lightness and hue, each RGB channel clamps to 0-255, which shifts the output slightly from the requested OKLCH value.

Frequently Asked Questions

oklch(L C H) with L as a percentage, C as a plain chroma number, and H as a hue angle in degrees, such as oklch(68.04% 0.21 33.69). Paste one color per line for batch conversion.

No. High chroma at some hues describes colors outside the sRGB gamut a screen can show. Those results are clamped to the nearest representable RGB value.

Chrome and Firefox devtools often display computed colors in oklch() format. Converting to hex makes that value easier to drop into design tools, older CSS, or documentation that expects a hex code.

Try one of our format-specific converters below

Full Color Converter tool

Explore Our Tools

Browse all tools