OKLCH.xyz
← Learn

What is OKLCH?

OKLCH is a modern CSS color model built on perceptual uniformity — Lightness, Chroma and Hue you can actually reason about.

Updated Jul 1, 2026 · By OKLCH.xyz editorial team

OKLCH is a color model introduced in the CSS Color 4 specification. It describes a color with three intuitive channels plus alpha:

  • L — Lightness (01): how light the color appears.
  • C — Chroma (0–~0.4): how colorful/saturated it is.
  • H — Hue (0360): the hue angle, like a color wheel.
color: oklch(0.62 0.21 259);

Why it exists

OKLCH is the cylindrical form of Oklab, a color space engineered to be perceptually uniform: equal numeric steps look like equal visual steps. That is the property older models like HSL lack — in HSL, a yellow and a blue at the same lightness look nothing alike in brightness.

What that buys you

  • Predictable lightness for text and backgrounds.
  • Even color scales — 50–950 ramps that don’t go muddy in the middle.
  • Hue stability when you lighten or darken a brand color.
  • Wide-gamut support for Display P3 and Rec.2020, with clean sRGB fallbacks.

Try it

Paste any color into the HEX to OKLCH converter, or build a full scale with the palette generator.

Calculation methodology

Examples use CSS Color 4 syntax and conversions produced by the site's tested Color.js wrapper.

References