class Color::CIELAB

A Color object for the CIELAB color space (also known as L*a*b*). Color is expressed in a three-dimensional, device-independent “standard observer” model, often in relation to a “reference white” color, usually Color::XYZ::D65 (most purposes) or Color::XYZ::D50 (printing).

L* is the perceptual lightness, bounded to values between 0 (black) and 100 (white). a* is the range of green (negative) / red (positive) and b* is the range of blue (negative) / yellow (positive).

The a* and b* ranges are technically unbounded but Color clamps them to the values -128..127.

For more information, see CIELAB.

CIELAB colors are immutable Data class instances. Array deconstruction is [l, a, b] and hash deconstruction is {l:, a:, b:} (see l, a, b).