color

The color CSS data type sets the color in css properties and styles, it can be set in a variety of different ways: by hexadecimal value, by name and in the formats RGB, RGBA, HSL, HSLA.

Syntax



property: color;
where
color = hex-color | named-color | currentcolor | transparent
          rgb() | rgba() | hsl() | hsla() | hwb() |
          lab() | lch() | gray() |
          color() | device-cmyk() |
          system-color