Convert color temperatures to sRGB

Real-world artificial lights are often defined by their color temperature, measured in Kelvin (K). The color temperature of a light source is the temperature of an ideal black-body radiator that radiates light of comparable hue to that of the light source. The two images below show two different color temperature scales ranging from 1,000K to 12,500K. The first one shows correlated color temperatures (CCT), and the second one CIE standard illuminants series D.

While it is not difficult to convert color temperatures to sRGB it is not entirely obvious. This lead me to write a simple reference explaining how the conversion process from temperature to RGB works.

Leave a Reply