UTILS.
Private by default
🌡

Color Temperature to RGB

Convert a Kelvin color temperature into an approximate RGB color and hex code.

Your files stay on this device

Files are processed in your browser, never uploaded. The site downloads code and assets to run the tools. No accounts or trackers.

Use Download to save this tool as one HTML file for offline use.

Privacy →

About this tool

Pick a color temperature in Kelvin and see the approximate RGB and hex color it produces, using the Tanner Helland approximation, all in your browser.

The slider and number box stay in sync from 1000 K to 12000 K in steps of 50; typed values outside that are clamped, and an empty or zero entry becomes 6500 K. Click the hex, RGB or Kelvin box to copy it. Red is fixed at 255 up to 6600 K, blue at 255 from 6600 K up, and blue is 0 at 1900 K and below. At 6500 K the result is #FFFEFA, close to but not pure white.

Frequently asked questions

How accurate is the conversion?
It uses the widely used Tanner Helland approximation, which is close enough for previews but is not a precise blackbody radiance calculation.
What do low and high values look like?
Lower temperatures around 2000 K look warm and orange, while higher ones near 10000 K look cool and bluish.
What range can I enter?
From 1000 K to 12000 K. Values outside are clamped, and an empty field or 0 gives 6500 K.
How do I copy a value?
Click the hex, RGB or Kelvin box in the result.

More tools