Convert OKLCH to RGB & P3

Inspect exact 0–255 sRGB, linear RGB, and Display P3 channel readouts from any CSS Color 4 oklch() input.

0 bytes sent
  • 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

Exact sRGB 8-bit + CSS rgb()
Input Sampleaccent-token.oklch
oklch(0.62 0.22 260)
Expected OutputRGB
rgb(39 125 255)

OKLCH vs RGB

Source vs. target format specification comparison
PropertySource: OKLCHTarget: RGB
Gamut scopeWide Gamut (P3 / Unbounded)sRGB (Standard Web)
Perceptual uniformityYesNo
Alpha channel supportYesYes
Human readabilityHighMedium
Extension / Token.css / .json.css / .json
Best forPerceptually uniform UI palettes, Tailwind v4 design tokens, and wide-gamut CSSPixel buffers, Canvas 2D shaders, and programmatic alpha opacity blending

How to use OKLCH to RGB

OKLCH to RGB — 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

Can I copy 0–1 floating RGB floats for shaders?

Yes — the converter reveals both 0–255 CSS rgb() and normalized 0–1 channel values ready for Canvas or WebGL.

What if my OKLCH color exceeds sRGB 255?

CSS Color 4 binary chroma reduction clamps cleanly onto the [0, 255] gamut edge without distorting hue.