Function toXyzD65
Converts Oklab to the CIE XYZ D65 connection space.
Use this when an Oklab result must continue through an XYZ-based conversion path. Extended values are preserved; no clipping or gamut mapping is performed.
Parameters
| Name | Description |
|---|---|
| lab | Oklab value to convert. |
Returns
The corresponding CIE XYZ D65 value.
Standards
Uses the inverse of Björn Ottosson's published Oklab transform.
See Also
toOklab
Example
const neutral = Oklabd(0.5, 0.0, 0.0);
const xyz = neutral .toXyzD65;
assert(xyz .x == xyz .x);
assert(xyz .y == xyz .y);
assert(xyz .z == xyz .z);