Display P3: Wide-Gamut Display P3 RGB Space
Wide-gamut RGB color space spanning roughly 25% more color volume than sRGB (especially vivid reds, greens, and cyans), written as color(display-p3 r g b).
| Extension / Token | .css / .icc |
|---|---|
| MIME / Media type | text/css |
| Gamut scope | Wide Gamut (P3 / Unbounded) |
| Human readability | Medium |
| Perceptual uniformity | No |
| Alpha channel support | Yes |
| Best for | Vivid OLED/Retina web hero accents, Apple devices, and HDR/wide-gamut UI badges |
Display P3
CSS / .ICCcolor(display-p3 0.92 0.28 0.21)Strengths
- Produces noticeably richer saturated reds, oranges, and greens on modern iPhone, MacBook, and OLED screens.
- Full support across Safari, Chrome, Edge, and Firefox via CSS color(display-p3 ...).
- Shares D65 white point with sRGB and OKLCH for clean matrix math.
Trade-offs
- Colors outside sRGB appear muted or clipped when exported directly onto legacy sRGB-only monitors.
- Not perceptually uniform on its own — pair with OKLCH chroma clamping for UI scales.
Convert & inspect Display P3 locally
Related color engineering guides
- Hex to OKLCH: Migrating Design Tokens to Tailwind CSS v4Step-by-step guide to upgrading Hex and HSL Tailwind v3 themes into CSS Color 4 @theme oklch() scales with perceptual brightness and Display P3 support.
- OKLCH vs HSL vs sRGB: Understanding Wide-Gamut Display P3Compare HSL, sRGB Hex, Display P3, and OKLCH across perceptual lightness, gradient dead zones, gamut volume, and CSS progressive enhancement.
Display P3 frequently asked questions
Can I convert Display P3 colors safely back to sRGB Hex?
Yes — Colr applies OKLCH chroma-preserving gamut mapping to find the nearest valid sRGB hex fallback without wild hue shifts.
Does every Display P3 value stay inside sRGB?
No. While all sRGB colors fit comfortably inside Display P3, high-saturation P3 primaries sit outside the sRGB cube.