CSS: color() function

By Xah Lee. Date: . Last updated: .
xtodo

What is color() function

color() function let you specify colors in Wider Gamut Color, in many standard color spaces, and also let you specify relative color.

Syntax

Example

.x {
 background: color(display-p3 0 1 0);
 /* A very vivid green */
}

CSS Color