Convert OKLCH to sRGB Hex

Convert CSS Color 4 oklch() coordinates into clean sRGB #RRGGBB fallbacks using hue-preserving binary chroma gamut mapping.

Gamut Map
  • 100% browser-local
  • Zero server transfers
  • CSS Color 4 precision

or drop a color string, CSS/JSON snippet, or file here · Ctrl V to paste · Paste Hex, RGB, HSL, OKLCH or use Screen Eyedropper

Instant Before & After Specimen

Chroma-Preserving Gamut Map
Input Samplewide-emerald.oklch
oklch(0.75 0.27 145)
Expected OutputHEX
#00D605

OKLCH vs HEX

Source vs. target format specification comparison
PropertySource: OKLCHTarget: HEX
Gamut scopeWide Gamut (P3 / Unbounded)sRGB (Standard Web)
Perceptual uniformityYesNo
Alpha channel supportYesYes
Human readabilityHighMedium
Extension / Token.css / .json.css / .txt
Best forPerceptually uniform UI palettes, Tailwind v4 design tokens, and wide-gamut CSSCompact copy-paste handoff in sRGB brand guidelines and legacy CSS

How to use OKLCH to Hex

OKLCH to Hex — cleanly inside your local browser with zero server transfers.

  1. Enter or pick a colorType Hex, RGB, HSL, OKLCH, or Lab — or click Screen Eyedropper and live sliders.
  2. Inspect math & gamutReview exact CSS Color 4 readouts, sRGB vs Display P3 status, and profile options.
  3. Copy, chain, or exportCopy ready CSS/JSON snippets, download binary swatch files, or pipe directly to related Colr tools.

Frequently asked questions

What happens when an OKLCH color falls outside sRGB?

Colr flags the Out-of-sRGB badge and searches along constant Lightness and Hue to find the closest sRGB Hex on the gamut boundary.

Can I paste CSS strings with percentages or 0–1 lightness?

Yes — enter oklch(54.6% 0.215 262.9) or oklch(0.546 0.215 262.9) interchangeably.