About Color Temperature Converter
Enter a temperature in kelvin, such as 2700 K for a warm household bulb or 6500 K for daylight, and get the sRGB color that light looks like, as HEX and rgb(), with its CIE 1931 chromaticity and its mired value.
Choose Black body for incandescent and fire light, or Daylight to follow the CIE daylight series, on which 6504 K is exactly the white point of sRGB. A strip of familiar temperatures lets you compare and pick one in a tap: handy for photo grading notes, lighting mock-ups, warm and cool UI themes, or matching a scene in an illustration.
How it works
- The temperature is turned into a CIE 1931 chromaticity: for Black body with the Kim et al. cubic-spline fit to the Planckian locus, for Daylight with the CIE formula for the D series of illuminants.
- That chromaticity is converted to linear sRGB, scaled so its strongest channel is full, and encoded as ordinary 8-bit sRGB.
- Below about 1900 K the light is more saturated than sRGB can hold. The negative channel is then set to zero and the tool says so.
Questions
Why is 6500 K not pure white on the Black body setting?
The sRGB white point, D65, is a daylight color that sits slightly off the black-body curve, on its green side. Switch to Daylight and 6504 K comes out as #ffffff.
What range of temperatures can I enter?
Black body covers 1667 to 25000 K and Daylight 4000 to 25000 K, the ranges the published formulas are defined for. Outside them the tool asks for a temperature in range rather than guessing.
Does a higher temperature mean a brighter light?
No. Temperature sets the tint, from orange to blue. The color shown is scaled to full brightness so tints can be compared; a real lamp’s brightness depends on its power.
Is this exact?
The chromaticity formulas agree with the reference curves to within about 0.001 in x and y, well below what the eye can tell apart in a swatch. Real lamps, especially LEDs, also drift off the curve, so treat the result as the nominal color of that temperature.
Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.