Function toCieLabD50
Converts XYZ D65 to CIE 1976 L*a*b* referenced to D50.
The D65 -> D50 linear Bradford adaptation is explicit in this conversion. Extended mathematical values are preserved; no clipping or gamut mapping occurs.
Parameters
| Name | Description |
|---|---|
| xyz | CIE XYZ value referenced to D65. |
Returns
CIELAB coordinates referenced to D50.
Standards
ISO/CIE 11664-4:2019. D65/D50 adaptation follows the published CSS Color 4 implementation reference.
Example
const white = XyzD65d(
0.9504559270516717,
1.0,
1.0890577507598784
) .toCieLabD50;
assert(white .l > 99.999999 && white .l < 100.000001);
assert(white .a > -0.00001 && white .a < 0.00001);
assert(white .b > -0.00001 && white .b < 0.00001);