gamut mapping
Converting a colour that a screen cannot show into the closest colour it can, ideally keeping the same hue and lightness.
In more detail
Naive clipping cuts each RGB channel to its limit and can shift the hue noticeably. CSS Color Module Level 4 defines a gentler method that reduces chroma in OKLCH until the colour fits. This keeps wide-gamut palettes looking right on standard sRGB screens.
Related terms
- gamut — The full range of colours a colour space or screen can represent.
- Display P3 — A colour space with a wider gamut than sRGB, supported by many modern phone, laptop and monitor screens.
- OKLCH — A colour space, used in CSS as oklch(), that describes colours by perceived lightness, chroma (colourfulness) and hue angle.
Taught in
- Modern Color Spaces: OKLCH, Gamut Mapping & APCA Contrast — Design Systems & Component Engineering