lab()

The lab() functional notation expresses a given color in the CIE L*a*b* color space. Lab represents the entire range of color that humans can see.

Syntax

lab(29.2345% 39.3825 20.0664);
lab(52.2345% 40.1645 59.9971);
lab(52.2345% 40.1645 59.9971 / .5);

Values

Functional notation: lab(L a b [/ A])

L specifies the CIE Lightness, and is a <percentage> between 0% representing black and 100% representing white.

The second argument a is the distance along the a axis in the Lab colorspace.

The third argument b is the distance along the b axis in the Lab colorspace.

A (alpha) can be a <number> between 0 and 1, or a <percentage>, where the number 1 corresponds to 100% (full opacity).

Specificatiions

Specification
CSS Color Module Level 4 (CSS Color 4)
# lab-colors

Browser compatibility

BCD tables only load in the browser

See also