colour.xy_to_CCT#

colour.xy_to_CCT(xy: ArrayLike, method: Union[Literal['CIE Illuminant D Series', 'Kang 2002', 'Hernandez 1999', 'McCamy 1992'], str] = 'CIE Illuminant D Series') FloatingOrNDArray[source]#

Return the correlated colour temperature \(T_{cp}\) from given CIE xy chromaticity coordinates using given method.

Parameters:
Returns:

Correlated colour temperature \(T_{cp}\).

Return type:

numpy.floating or numpy.ndarray

References

[HernandezAndresLR99], [KMH+02], [Wikipedia01a], [Wikipedia01b], [WS00k]

Examples

>>> import numpy as np
>>> xy_to_CCT(np.array([0.31270, 0.32900]))  
6508.1175148...
>>> xy_to_CCT(np.array([0.31270, 0.32900]), "Hernandez 1999")
... 
6500.7420431...