Functional Notations for Color Systems
Color property values can be declared
in hexadecimal form, or using the
functional notations of various
color systems, with syntax
color-func(c1 c2 c3 [/c4])
.
Components 1, 2, and 3 select the color in the given system.
Component 4, optional and separated by forward slash, is always transparency.
| Name | Space | c1 | c2 | c3 |
|---|---|---|---|---|
rgb | sRGB | Red | Green | Blue |
hsv | sRGB | Hue | Saturation | Lightness |
hwb | sRGB | Hue | Whiteness | Blackness |
oklab | Oklab | Lightness | Red-Green | Blue-Yellow |
oklch | Oklab | Lightness | Chroma | Hue |