colour.XYZ_to_xyY#

colour.XYZ_to_xyY(XYZ: ArrayLike, illuminant: ArrayLike = CCS_ILLUMINANTS['CIE 1931 2 Degree Standard Observer']['D65']) numpy.ndarray[source]#

Convert from CIE XYZ tristimulus values to CIE xyY colourspace and reference illuminant.

Parameters
  • XYZ (ArrayLike) – CIE XYZ tristimulus values.

  • illuminant (ArrayLike) – Reference illuminant chromaticity coordinates.

Returns

CIE xyY colourspace array.

Return type

numpy.ndarray

Notes

Domain

Scale - Reference

Scale - 1

XYZ

[0, 1]

[0, 1]

Range

Scale - Reference

Scale - 1

xyY

[0, 1]

[0, 1]

References

[Lin03b], [Wikipedia05d]

Examples

>>> XYZ = np.array([0.20654008, 0.12197225, 0.05136952])
>>> XYZ_to_xyY(XYZ)  
array([ 0.5436955...,  0.3210794...,  0.1219722...])