Kelvin Color Temperature Picker
Map 1000–20000 K to RGB, hex and CSS with photography anchors, reverse lookup and contrast previews.
Temperature controls
2700 K · 370 miredTungsten (2700 K)
Named anchors
White point preview
#ffa757White text · 1.92:1
Black text · 10.92:1
--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
Tungsten anchor 2700 K#ffa757A typical warm indoor white point for bulbs and photography.
Bulb API value
Mired 5002000 KSmart-home systems often accept reciprocal megakelvin rather than kelvin.
Neutral gray lookup
Reverse #808080≈6600 KChromaticity-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
Pick a temperature
Drag the slider, type a kelvin or mired value, or click an anchor chip such as Daylight 5600 K.
Use the gradient strip
Click anywhere on the ramp or focus the strip slider and use arrow keys for fine adjustments.
Check contrast
The swatch shows white and black sample text with both contrast ratios so you can judge UI readability.
Reverse a color
Paste a hex value. Neutral grays return a stable CCT; off-locus colors show an approximate warning.
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
| Output | Meaning |
|---|---|
| HEX | Six-digit sRGB color from the Helland fit |
| rgb() / hsl() | CSS color functions for the same white point |
| Mired | 1,000,000 / kelvin, the reciprocal unit used by lighting APIs |
| CIE xy | Informational chromaticity of the sRGB white point |
| Contrast | WCAG ratio against pure white and pure black text |
| Reverse | Nearest 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.
Related tools
CIELAB Color Explorer
Convert colors to CIELAB/LCh and XYZ, explore a*–b* and L*–C* slices, and compare colors with ΔE76 and ΔE2000.
CMYK Color Converter
Convert hex/RGB to CMYK percentages and back with total ink limits, rich-black recipes, batch conversion and a print preview.
Color Blindness Simulator
Simulate color blindness on palettes and images. Compare protanopia, deuteranopia, tritanopia, and more side-by-side.
Color Contrast Checker
Advanced WCAG accessibility compliance checker with color blindness simulation, multiple text sizes, and comprehensive analysis features.
Color Converter
Convert colors between multiple formats (HEX, RGB, HSL, HSV, CMYK, LAB) with color blindness simulation, named colors, and batch processing
Color Extractor
Extract colors from uploaded images by hovering over pixels to get precise color values.