CSS Color Module Level 4
The W3C specification that adds new colour spaces and functions to CSS, including oklch(), lab() and color(display-p3 ...).
In more detail
It also defines how browsers map out-of-gamut colours and how colours are interpolated. All major browsers support its OKLCH and Display P3 features.
Related terms
- OKLCH — A colour space, used in CSS as oklch(), that describes colours by perceived lightness, chroma (colourfulness) and hue angle.
- Display P3 — A colour space with a wider gamut than sRGB, supported by many modern phone, laptop and monitor screens.
- gamut mapping — Converting a colour that a screen cannot show into the closest colour it can, ideally keeping the same hue and lightness.
Taught in
- Modern Color Spaces: OKLCH, Gamut Mapping & APCA Contrast — Design Systems & Component Engineering