CIELAB color space
The CIELAB color space is an International Commission on Illumination (CIE) standard. It expresses color as lightness (L), a green-red component (A), and a blue-yellow component (B). It's a device-independent color space that was designed so that numerical changes in component values correspond to the same amount of perceived changes in color. It is frequently used to convert RGB into CMYK for printing.
Use the d3.lab() function to create a CIELAB color from its components, from another color, or a from color string, and then use the l, a, and b properties to read or modify individual color components. The following diagram shows the axes of the CIELAB color space. You can experiment with this color space using the online ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access