Convert Display P3 to sRGB Hex

Generate accurate sRGB #Hex fallbacks from vivid CSS color(display-p3 r g b) colors using OKLCH chroma-preserving gamut mapping.

Wide Gamut
  • 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

Display P3 -> sRGB Gamut Fallback
Input Samplewide-gamut.p3
color(display-p3 0.14 0.88 0.56)
Expected OutputHEX
#00E08F

Display P3 vs HEX

Source vs. target format specification comparison
PropertySource: Display P3Target: HEX
Gamut scopeWide Gamut (P3 / Unbounded)sRGB (Standard Web)
Perceptual uniformityNoNo
Alpha channel supportYesYes
Human readabilityMediumMedium
Extension / Token.css / .icc.css / .txt
Best forVivid OLED/Retina web hero accents, Apple devices, and HDR/wide-gamut UI badgesCompact copy-paste handoff in sRGB brand guidelines and legacy CSS

How to use Display P3 to Hex

Display P3 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

Why not just clamp P3 channels straight to [0, 1] sRGB?

Hard channel clipping distorts reds toward orange and blues toward cyan; OKLCH binary mapping shrinks Chroma along fixed Hue and Lightness.

Does it report whether a P3 input was outside sRGB?

Yes — an inline Gamut Status badge shows In sRGB vs Wide-Gamut P3 Clamped.