Modern CSS Color Functions
Modern CSS introduces powerful colour functions that go beyond basic rgb() and hsl(), giving access to wider colour spaces and programmatic colour manipulation.
oklch()
OKLCH is a perceptually uniform colour space. oklch(lightness chroma hue) produces smooth, predictable gradients and palettes where equal numeric changes feel equal to the human eye.
color()
The color() function accesses specific colour spaces such as display-p3 (the wide gamut of modern screens), srgb, and srgb-linear.
lab() and lch()
Lab and LCH colour spaces are also perceptually uniform and supported in all modern browsers without a flag.