colour.XYZ_to_Oklab#
- colour.XYZ_to_Oklab(XYZ: ArrayLike) NDArrayFloat [source]#
Convert from CIE XYZ tristimulus values to Oklab colourspace.
- Parameters:
XYZ (ArrayLike) – CIE XYZ tristimulus values.
- Returns:
Oklab colourspace array.
- Return type:
Notes
Domain
Scale - Reference
Scale - 1
XYZ
[0, 1]
[0, 1]
Range
Scale - Reference
Scale - 1
Lab
L
: [0, 1]a
: [-1, 1]b
: [-1, 1]L
: [0, 1]a
: [-1, 1]b
: [-1, 1]Input CIE XYZ tristimulus values must be adapted to CIE Standard Illuminant D Series D65.
References
[Ott20]
Examples
>>> XYZ = np.array([0.20654008, 0.12197225, 0.05136952]) >>> XYZ_to_Oklab(XYZ) array([ 0.5163401..., 0.154695 ..., 0.0628957...])