Color Temperature (Kelvin) to RGB

Type a colour temperature in Kelvin and see the matching black-body sRGB colour. Built-in presets for common lighting conditions — candle, tungsten, daylight, overcast, blue sky — plus a live HSL and rgb() readout, a tonal scene preview, and click-to-copy chips for every value. Runs in your browser, no upload.

K
Common lighting
Scene preview
Readouts — click any chip to copy

How Kelvin to RGB works
  • Colour temperature is a way to describe the colour of a light source by comparing it to a heated black body. Lower numbers are redder; higher numbers are bluer.
  • Sunlight at noon on a clear day is about 5 500–6 500 K; candlelight is around 1 900 K; deep shade is closer to 10 000 K.
  • The numbers and presets on this page are an approximation — the algorithm is Tanner Helland’s, tuned by eye. Real black-body radiation is a continuous spectrum and can be more saturated than what monitors can show; values outside the sRGB gamut get clipped to its edge.
  • The scene preview shows the colour on a flat swatch and as a fill for three shapes. The little band at the bottom is a 1 000 K → 12 000 K gradient with a marker pinned to the current temperature.
  • Nothing leaves the browser. The tool runs entirely on a small client-side script.