The same two colors interpolated in different color spaces produce noticeably different gradients. RGB often goes through muddy intermediate tones, HSL can produce unexpected bright intermediates, and LAB tends to maintain perceptual smoothness.
Standard Red Green Blue
The default color space of the web. Colors are defined by mixing red, green, and blue light channels, each ranging from 0 to 255. Nearly all screens support sRGB, and CSS rgb() uses this space.
General web work, when broad device compatibility is paramount.
DCI-P3 (Display)
A wider color space than sRGB, covering roughly 50% more colors. Used by Apple devices, modern OLED screens, and HDR content. Access it in CSS via the color() function.
When you need vivid, saturated reds, greens, and oranges on modern displays.
Hue, Saturation, Lightness
A cylindrical remap of sRGB that separates hue (0-360 degrees), saturation (0-100%), and lightness (0-100%). More intuitive for humans than raw RGB values.
Theme generation, creating tints/shades, rotating hue for color harmonies.
CIE 1976 L*a*b*
A device-independent color space designed to approximate human vision. L* is perceptual lightness (0-100), a* is the green-red axis, and b* is the blue-yellow axis. The gamut covers all colors visible to humans.
Color difference calculations, accessibility checks, scientific color work.
Lightness, Chroma, Hue (CIE)
The cylindrical form of CIE LAB. Lightness (0-100), Chroma (0-150+), and Hue (0-360). Combines the perceptual uniformity of LAB with the intuitive hue/chroma model of HSL.
Designing perceptually balanced palettes with predictable hue shifts.
OK Lightness, Chroma, Hue
An improved perceptually uniform color space created by Bjorn Ottosson in 2020. Fixes the hue linearity issues of CIE LCH while retaining intuitive lightness/chroma/hue controls. Increasingly the recommended space for CSS color work.
Palette design, CSS custom properties, any work where perceptual uniformity matters.