Color Gamut Explained: sRGB, Display P3 & Wide-Gamut Colors
Understand screen color spaces, wide-gamut hardware, and gamut mapping.
Key Technical Takeaway
A color gamut defines the subset of colors a display monitor or color space can physically reproduce. Display P3 offers ~25% larger color volume than sRGB, reproducing vibrant greens, reds, and deep pinks impossible in standard sRGB.
What is a Color Gamut?
A color gamut represents the total volume of visible colors that a physical display panel, camera sensor, or software color space can render. While human eyes can perceive millions of color variations across the CIE 1931 chromaticity diagram, digital displays are constrained by their backlight LEDs and color filters.
sRGB vs Display P3 vs Rec. 2020
sRGB was established in 1996 for legacy CRT displays and remains the standard baseline for web browsers. Display P3 (popularized by Apple and modern mobile displays) expands the gamut by approximately 25% over sRGB, extending deep into vivid greens, fiery oranges, and intense pinks.
| Gamut Standard | CIE 1931 Coverage | Primary Devices | Web Capability |
|---|---|---|---|
| sRGB | ~33.5% of human sight | Standard monitors, legacy web | Baseline web standard (HEX/RGB) |
| Display P3 | ~45.5% of human sight | iPhones, Macs, modern displays | CSS color(display-p3 r g b) & OKLCH |
| Rec. 2020 | ~75.8% of human sight | HDR 4K/8K TVs, cinema displays | Future-proof wide gamut standard |
Gamut Clipping vs Gamut Mapping in OKLCH
Because OKLCH is unconstrained by display geometry, specifying a high chroma value (e.g., `oklch(0.7 0.35 140)`) produces a color that falls outside standard sRGB. When rendered on an sRGB display, browsers perform gamut mapping to pull the color back inside sRGB boundaries while preserving lightness and hue.
/* Targeting Wide-Gamut Hardware in CSS */
@media (color-gamut: p3) {
.vibrant-hero {
/* Display P3 color syntax */
background-color: color(display-p3 0.9 0.2 0.15);
/* High-chroma OKLCH automatically renders in P3 on capable screens */
color: oklch(0.70 0.30 145);
}
}Practical Takeaways for Web Designers
Designing for wide-gamut displays requires understanding hardware constraints and fallback behavior:
- High-chroma OKLCH colors render with maximum vibrancy on Display P3 screens without breaking on sRGB monitors.
- Gamut mapping in CSS Level 4 gracefully reduces chroma without causing drastic hue shifts.
- Use CSS `@media (color-gamut: p3)` when designing high-impact hero banners and photography UI components.