HEX to OKLCH Converter

OKLCH is a newer CSS color space that's perceptually uniform: equal numerical changes in lightness, chroma, or hue feel like equal visual changes. HEX is sRGB-based and not perceptually uniform.

How HEXOKLCH works

HEX → sRGB → linear RGB → Oklab (via 3×3 matrix) → OKLCH (Oklab in polar form). The result is L (0–100%), C (chroma), H (hue 0–360°).

When to use OKLCH

Use OKLCH when designing modern color systems — accessible palettes, smooth gradients, and dark-mode pairs all benefit from a perceptually uniform space.

Convert any HEX on your Mac

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