The Color CSS data type denotes a color in the sRGB color space. A color
can be described in any of these ways:
- using a keyword
- using the RGB cubic-coordinate system (via the #-hexadecimal or the rgb()
and rgba() functional notations)
- using the HSL cylindrical-coordinate system (via the hsl() and hsla()
functional notations)
The Color CSS data type denotes a color in the sRGB color space. A color can be described in any of these ways:
- using a keyword - using the RGB cubic-coordinate system (via the #-hexadecimal or the rgb() and rgba() functional notations) - using the HSL cylindrical-coordinate system (via the hsl() and hsla() functional notations)
MDN