Colour examples
Most of the public Colour API is available from the colour namespace.
import colour
For example, computing the CIE 2017 Colour Fidelity Index of a light source can be done as follows:
sd = colour.SDS_ILLUMINANTS.get('FL2')
colour.colour_fidelity_index(sd)
The correlated colour temperature of a CIE Standard Illuminant can be calculated easily:
il = colour.CCS_ILLUMINANTS['CIE 1931 2 Degree Standard Observer']['D50']
colour.xy_to_CCT(il, method='Hernandez 1999')
Colour also implements various plotting functions via Matplotlib:
colour.plotting.colour_style()
colour.plotting.plot_visible_spectrum();
Sponsors
We are grateful for the support of our sponsors. If you'd like to join them, please consider becoming a sponsor on OpenCollective.





















