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).
Specification Status Comment
CSS Color Module Level 4 Working Draft Initial definition

Browser compatibility

No compatibility data found for css.types.color.lab.
Check for problems with this page or contribute missing data to mdn/browser-compat-data.

See also