Calculate color temperature conversions, CIE xy CCT, and Kelvin to RGB/hex values for lighting filters and color correction with presets.

Color Temperature Calculator

Enter values, choose a tab, then click Calculate.

Filter Correction
CIE xy to CCT
Kelvin to RGB

Light Source Conversion

Mired-shift matching is used so filters can be compared across different source temperatures.

CIE 1931 xy to CCT

Uses McCamy’s approximation for points near the blackbody locus.

Kelvin to RGB / Hex

Show Calculation Steps

Color Temperature Formula

The following formula (Wien’s displacement law) is used to estimate the temperature of a blackbody from its peak wavelength (λmax).

T (K) = (2.897771955 × 10^6 nm·K) / λ_max (nm).  

Variables:

  • T is the (blackbody) color temperature in Kelvin (K)
  • λmax is the peak wavelength in nanometers (nm)

To calculate the color temperature from a peak wavelength in nanometers, divide 2,897,771.955 by λmax (nm). This is a blackbody approximation; for real light sources, “color temperature” often refers to correlated color temperature (CCT), which generally cannot be determined from a single wavelength alone.

What is Color Temperature?

Color temperature (often reported as correlated color temperature, or CCT) is a characteristic of visible light that describes the hue of a light source. It is measured in Kelvin (K) and is used to describe the warmth or coolness of a light source. Lower color temperatures (around 2000-3000K) produce a warm, yellowish light, while higher color temperatures (above 5000K) produce a cool, bluish light. Color temperature is an important factor in photography, videography, and lighting design, as it affects the mood and appearance of a scene.

How to Calculate Color Temperature?

The following steps outline how to calculate the Color Temperature.


  1. First, determine the peak wavelength of the light (λmax).
  2. Next, use the formula T = (2.897771955 × 10^6) / λmax (with λmax in nm) to calculate the color temperature in Kelvin.
  3. Finally, check your answer with the calculator above.

Example Problem : 

Use the following variables as an example problem to test your knowledge.

Peak Wavelength (λmax) = 500 nm

Calculate the color temperature using the formula T = (2.897771955 × 10^6) / λmax.