DevTools Logo

Kelvin Color Temperature Picker

Kelvin Color Temperature Picker

Map 1000–20000 K to RGB, hex and CSS with photography anchors, reverse lookup and contrast previews.

Runs in your browser

Temperature controls

2700 K · 370 mired

Tungsten (2700 K)

Named anchors

White point preview

#ffa757

White text · 1.92:1

Black text · 10.92:1

HEX#ffa757
RGBrgb(255, 167, 87)
HSLhsl(29, 100%, 67%)
CIE xy0.466, 0.407
--kelvin-color: #ffa757;

Tanner Helland's Planckian-locus approximation, accurate to roughly ±1% for lighting and white-balance work. It is not a display calibration or camera profile.

Examples

Warm bulb

Input
Tungsten anchor 2700 K
Output
#ffa757

A typical warm indoor white point for bulbs and photography.

Bulb API value

Input
Mired 500
Output
2000 K

Smart-home systems often accept reciprocal megakelvin rather than kelvin.

Neutral gray lookup

Input
Reverse #808080
Output
≈6600 K

Chromaticity-only matching ignores lightness, so gray ladders stay consistent.

About this tool

The Kelvin Color Temperature Picker maps 1000–20000 K to display RGB using Tanner Helland's published piecewise fit to the Planckian locus. The slider uses a log scale so warm temperatures are not crammed into one end, and a numeric field accepts kelvin or mired — the unit many smart-home APIs use.

Named anchors cover candle, tungsten, soft white, fluorescent, flash, daylight, cloudy, shade and blue sky. The gradient strip can be clicked or driven with the keyboard, and the preview card shows the same white point with white and black sample text plus WCAG contrast ratios.

Reverse lookup accepts a hex color and finds the closest locus point using chromaticity only, so a gray ladder maps to a consistent correlated color temperature instead of scattering by brightness. Saturated colors are explicitly labeled as approximate. Outputs include hex, rgb(), hsl(), a CSS variable and informational CIE xy coordinates.

What this tool does not do

  • Tanner Helland's fit is approximate, roughly ±1% versus calibrated conversions.
  • Very high temperatures are within sRGB here but real displays vary; no gamut warning is implied.
  • Reverse lookup describes chromaticity only; it cannot recover tint (Duv) or brightness.
  • The tool does not grade images or write camera profiles.

How to use this tool

  1. Pick a temperature

    Drag the slider, type a kelvin or mired value, or click an anchor chip such as Daylight 5600 K.

  2. Use the gradient strip

    Click anywhere on the ramp or focus the strip slider and use arrow keys for fine adjustments.

  3. Check contrast

    The swatch shows white and black sample text with both contrast ratios so you can judge UI readability.

  4. Reverse a color

    Paste a hex value. Neutral grays return a stable CCT; off-locus colors show an approximate warning.

  5. Copy CSS

    Copy hex, rgb(), hsl() or a CSS custom property directly from the output panel.

Use cases

Photography white balance

Match a scene's color temperature with a named anchor and compare preview colors.

Lighting and smart home

Translate between kelvin and mired when configuring bulbs or scenes.

UI theming

Pick warm or cool neutral backgrounds with a measured text contrast ratio.

Outputs and units

OutputMeaning
HEXSix-digit sRGB color from the Helland fit
rgb() / hsl()CSS color functions for the same white point
Mired1,000,000 / kelvin, the reciprocal unit used by lighting APIs
CIE xyInformational chromaticity of the sRGB white point
ContrastWCAG ratio against pure white and pure black text
ReverseNearest locus point by RG chromaticity, step 50 K

The mapping is an approximation for lighting and white-balance work, not a display calibration or camera profile.

Frequently asked questions

What RGB is 2700 K?

Using the Tanner Helland fit, 2700 K is approximately rgb(255, 167, 87), or #ffa757 — the familiar warm tungsten white. Move the slider to see nearby values; the output updates live for every 50 K step.

How accurate is the Kelvin to RGB conversion?

The published Helland approximation is generally within about 1% of more involved colorimetric conversions for the 1000–40000 K range. This tool clamps to 1000–20000 K and reports display sRGB, so it is suitable for lighting and UI work but not for display calibration or camera profiling.

What's the difference between 3000 K and 5600 K?

3000 K is a warm, yellowish indoor white typical of soft bulbs; 5600 K approximates neutral daylight. In the preview you will see blue rise sharply and warmth fall between them. The named anchor buttons jump straight to both values.

Does this match my camera's white balance?

It matches the correlated color temperature, but a camera white-balance setting also accounts for tint along the green–magenta axis. Off-locus reverse inputs are labeled approximate because this tool compares chromaticity only and does not report Duv.

Why can I enter mireds?

Many lighting systems (Zigbee, Hue) expose color temperature in mireds, the reciprocal of kelvin scaled by one million. 2000 K is 500 mired. Switching the unit selector lets you paste device values directly.

Why does a saturated color map to an approximate kelvin?

Correlated color temperature is defined near the white point. A saturated red is far from the Planckian locus, so the nearest point is only an approximation; the tool reports the chromaticity distance and labels the result accordingly.