Display P3 is a color gamut: a range of colors a device can show. It spans approximately 25% more colors than sRGB and is available on most smartphones and many high-end laptops. A gamut is not a CSS color notation or a color space; those describe ways to represent and arrange colors. section 11.2.1
Choose how to use that extra range based on the result you need:
- Use a newer wide-gamut CSS color notation to specify colors beyond sRGB. Older notations can express only sRGB colors, even on a P3 display. section 11.2.1 section 11.2.2
- Let the browser approximate a specified P3 color on a display that cannot show it. The result may be close, but it will not be exact. section 11.3 section 11.2.2
- Use `@media (color-gamut: p3)` when styles should apply only where P3 color is supported. section 11.2.1
Check a color in DevTools
In a wide-gamut color picker, the thin white line marks the sRGB limit. Colors beyond it can belong to Display P3: an sRGB monitor will show its closest approximation instead. section 11.3
Figure 11.9 Representation of display gamut color ranges
Compare the represented ranges of sRGB, Display P3, and Rec2020 to see what a wider gamut adds. section 11.2.1
