OKLCH to HEX Converter

OKLCH is the modern, perceptually uniform CSS color space. HEX is the legacy format used everywhere on the web. Converting OKLCH to HEX makes designs portable to older tools.

How OKLCHHEX works

OKLCH → Oklab (polar to rectangular) → linear RGB (3×3 matrix) → sRGB (gamma encode) → HEX (round and base-16 encode each channel).

When to use HEX

Use the HEX output anywhere your design needs maximum compatibility — older browsers, Sketch/Figma plugins, image-export pipelines.

Convert any OKLCH on your Mac

Colorframe shows you OKLCH, HEX, and every other format side-by-side as you pick. Copy any with one click.