concept

color-gamut — CSS reference

A gamut is the set of colors reproducible by a space or output device. P3 can encode colors outside sRGB, and perceptual spaces can describe colors beyond a display’s capabilities. The rendering system must map unreproducible colors into the output gamut. Serialization of coordinates is not a measurement of that mapping.

Formal Syntax & Structure

css syntaxcss
color(display-p3 1 0 0); @media (color-gamut: p3) { ... }

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>CSS color lab</title><style>body {margin:0} .sample {height:12px;background:#006050}p {padding:12px;background:white;color:black;border:2px solid currentColor} #a{color:color(display-p3 1 0 0)} #b{color:color(display-p3 1.1 0 0)}
</style><body><p id="a">First color sample</p><p id="b">Second color sample</p></body></html>
CSS Reference