The tool you need, ready to use

Kelvin to RGB Converter

Enter a kelvin (K) value or drag the slider and the tool shows what color that light has on a screen, as HEX, RGB and linear RGB. Enter a HEX color or the xy coordinates from a light meter instead and you get the correlated color temperature (CCT) and how far the color sits from the blackbody locus (Duv). The math is Planck's law and the CIE 1931 color-matching functions, not an approximation formula, and the page also shows the spectral distribution, a chromaticity map, mired and nominal LED color temperature ranges.

Last updated 2026-10-20All math stays in your browser
Reference curve
Camera white balance (approximate values from the Canon EOS R50 manual)
CIE standard illuminants
Sample colors

Enter a HEX code (#FFD7A8), rgb(), a CSS color name, or the CIE 1931 xy coordinates from a meter (0.3127, 0.3290). Brightness is ignored; only the color counts.

—

Changing with a filter (mired shift)

    Nominal LED color temperatures (ANSI C78.377)

      Spectral distribution of this light

      CIE 1960 uv chromaticity map

      The solid black line is the blackbody locus, the thick dashed line is the daylight locus, and the thin outer dashed lines mark Duv ±0.05, the limit within which CIE allows a color temperature. Click the map to get the color temperature of that point.

      Last updated 2026-10-20Your inputs are not stored

      ROBERIN standardThe tool you need,
      ready to use.
      • Clear at a glanceInputs and results sit where you expect them.
      • Result firstThe key number comes first; the working only when you need it.
      • Ask lessNo sign-up and no unnecessary details.

      3,000 K is #FFB86D and 6,500 K is #FFF8FE: Kelvin Values Turned into Screen Colors

      A color temperature is the color of the light an ideal blackbody gives off when it is heated to that temperature, written in kelvin (K). Low numbers look orange and high numbers look blue. This tool converts that light into the brightest color a screen (sRGB) can show and gives you the HEX and RGB values. The 3,000 K common in home bulbs is #FFB86D, 4,000 K is #FFD3A5, and 6,500 K is #FFF8FE.

      It also works the other way. Enter a HEX color or the xy coordinates from a light meter and you get the correlated color temperature (CCT), which is the temperature of the nearest blackbody, together with Duv, how far the color sits from the blackbody locus toward green or pink. The older version of this tool used a photo-editing approximation (Tanner Helland). It now calculates directly from Planck's law and the CIE 1931 color-matching functions.

      When it comes in handy

      • Web and app design: pick a "warm white" background or a night-mode tint from a real value such as 3,000 K or 4,000 K instead of guessing.
      • Smart lighting, LEDs and 3D work: get values to feed into an RGB LED or a shader. For these, linear RGB is the right input, not gamma-encoded HEX.
      • Photo and video: set a camera's white balance in kelvin, or find the mired shift of a filter that converts a light to 3,200 K or 5,600 K.
      • Buying and measuring lights: check whether the xy coordinates from a meter fall inside the nominal color temperature range printed on a product, and whether the green or pink tint (Duv) is large.

      How to use the tool

      1. Kelvin → color: type a number between 1,000 and 25,000 in the color temperature field or drag the slider. The slider is logarithmic, so the low end, where color changes fastest, gets more room.
      2. Reference curve: choose "Blackbody" for bulb and LED labels, or "Daylight D" for references such as D65 (screens) and D50 (print). The daylight curve is defined from 4,000 K.
      3. Quick picks: camera white balance values, CIE standard illuminants (A, D50, D65) and the nominal LED boxes below the result fill in the value with one click.
      4. Color → kelvin: enter a HEX code (#FFD7A8), rgb(), a CSS color name or xy coordinates (0.3127, 0.3290), or pick a color. Click the chromaticity map to get the color temperature of that point.
      5. Copy and share: every value has a copy button. "Copy result" copies a one-line summary and "Copy link" copies an address that holds the current state.

      Screen colors of common color temperatures

      These values are calculated for a blackbody. Mired is 1,000,000 divided by the kelvin value.

      Color temperatureScreen colorRGBMiredNote
      1,500 K#FF6C00255, 108, 0667outside sRGB (approximated with white mixed in)
      2,000 K#FF8B16255, 139, 22500
      2,700 K#FFAD59255, 173, 89370nominal LED 2,700 K
      3,000 K#FFB86D255, 184, 109333nominal LED 3,000 K
      3,500 K#FFC78B255, 199, 139286
      4,000 K#FFD3A5255, 211, 165250nominal LED 4,000 K
      5,000 K#FFE6D0255, 230, 208200
      5,500 K#FFEDE1255, 237, 225182
      6,500 K#FFF8FE255, 248, 254154slightly pinker than white
      10,000 K#CDD9FF205, 217, 255100
      20,000 K#ABC1FF171, 193, 25550

      Light below about 1,900 K lies outside what a screen can make from red, green and blue (sRGB), and the blue value would go negative. The tool then mixes in an equal amount of white to remove the negative and shows the nearest color, so it looks a little paler than the real light.

      How it is calculated

      1. Planck's law gives the spectral distribution from 360 to 830 nm in 5 nm steps, with the second radiation constant c₂ = 1.4388×10⁻² m·K.
      2. Multiplying by the CIE 1931 2° standard observer color-matching functions and summing gives the tristimulus values X, Y and Z, which are converted to xy chromaticity.
      3. The sRGB matrix defined in CSS Color 4 turns that into linear RGB, and only the brightness is scaled so the largest channel equals 1. This is the "Linear RGB" shown in the result.
      4. Applying the sRGB gamma and rounding to 0–255 gives the RGB and HEX values.

      Color → kelvin runs the other way. The entered color is converted to xy, then the closest point on the blackbody locus is found in CIE 1960 uv coordinates. That point's temperature is the correlated color temperature, and the distance is Duv, with + above the locus (green side) and − below it (pink side). The search scans the locus in 1-mired steps and then narrows in. Because the color-matching functions are used in 5 nm steps, the result differs from a 1 nm calculation by about 0.2 K at 10,000 K and about 1.5 K at 20,000 K, and the gap grows with temperature.

      Brightness is left out of the calculation, so gray #808080 and white #FFFFFF both come out at 6,504 K. In the color → kelvin view, the blackbody color on the right is drawn at the same brightness as your input. Mitchell Charity's well-known blackbody table uses adjusted color-matching functions (Judd–Vos), so its RGB values can differ from this tool's by a few steps at the same temperature.

      Why 6,500 K is not white: blackbody versus daylight

      The white of a monitor (#FFFFFF) is D65, the reference white defined by sRGB. D65 is not a blackbody but a daylight distribution that the CIE fixed from measurements of real daylight. Its correlated color temperature is about 6,504 K, but it lies about +0.003 Duv toward green from the blackbody locus. Draw a blackbody at 6,500 K on screen and you get #FFF8FE, a little pinker than white.

      KelvinBlackbodyDaylight DDuv of daylight
      4,000 K#FFD3A5#FFD6A1+0.0027
      5,000 K#FFE6D0#FFEBCD+0.0033
      5,500 K#FFEDE1#FFF3E0+0.0033
      6,500 K#FFF8FE#FFFFFF+0.0033
      7,500 K#EBECFF#E9F1FF+0.0032
      10,000 K#CDD9FF#CADDFF+0.0031

      The kelvin value on a bulb or LED box refers to a blackbody, while D50 (about 5,003 K) in print and D65 on screens refer to daylight. The same number gives a different color depending on the curve, so choose the "Reference curve" that fits your purpose. In the spectral plot you can see that daylight, a mix of skylight and atmospheric absorption, is bumpy, unlike the smooth blackbody curve.

      Duv: why the same color temperature can look greener or pinker

      Correlated color temperature gives one value to every color on a line perpendicular to the blackbody locus. So two lights at 4,000 K can differ, one greenish above the locus and one pinkish below it, and Duv is the number for that difference. The CIE says to use correlated color temperature only for whitish light, and not when the color is farther than 5×10⁻² (0.05) from the blackbody locus. The outer dotted lines on the chromaticity map mark that limit.

      InputCCTDuvHow to read it
      #FFFFFF (screen white)6,504 K+0.0032Slightly toward green (D65)
      #FFD7A84,098 K+0.0014Close to the blackbody, inside the LED 4,000 K range
      xy 0.4476, 0.4074 (illuminant A)2,855 K0.0000On the blackbody locus
      xy 0.3300, 0.36005,601 K+0.0105Greenish, outside the LED 5,700 K tolerance

      The 3,000 K and 4,000 K on an LED bulb are ranges, not points

      The nominal color temperature of an LED product is a range. The US standard ANSI C78.377 (Table 1, 2008 edition) gives each nominal value a target CCT with a tolerance, and a target Duv with a tolerance of ±0.006. The LED boxes in the tool show these ranges. In color → kelvin a ✓ means both CCT and Duv are inside, and a ✕ means Duv is outside. The check uses CCT and Duv ranges, so it can differ slightly from the standard's quadrangles near the corners.

      NominalTarget CCTCCT rangeTarget Duv
      2,700 K2,725 ± 1452,580–2,870 K0.000
      3,000 K3,045 ± 1752,870–3,220 K0.000
      3,500 K3,465 ± 2453,220–3,710 K0.000
      4,000 K3,985 ± 2753,710–4,260 K0.001
      4,500 K4,503 ± 2434,260–4,746 K0.001
      5,000 K5,028 ± 2834,745–5,311 K0.002
      5,700 K5,665 ± 3555,310–6,020 K0.002
      6,500 K6,530 ± 5106,020–7,040 K0.003

      In the standard the 4,500 K and 5,000 K ranges overlap by 1 K (4,745–4,746 K); the tool assigns that sliver to 4,500 K.

      Marketing names on the box vary by country and brand, and this page does not rely on them. The European lighting standard EN 12464-1 (2002 and 2011 editions; also published as UNE-EN 12464-1 in Spain) groups light below 3,300 K as warm, 3,300–5,300 K as intermediate and above 5,300 K as cool. The line under the LED boxes in the tool shows these three groups. When you compare products, go by the kelvin number rather than the name on the package.

      Choosing a filter with mired

      Mired is 1,000,000 divided by the kelvin value. A 500 K step changes the color far more at low temperatures than at high ones, and mired evens that out. That is why color-correction filters are labeled with a mired shift rather than kelvin. To match 3,200 K tungsten light to 5,600 K daylight you need 1,000,000 ÷ 5,600 − 1,000,000 ÷ 3,200 = −134 mired, which means a blue filter.

      LEE filterMired shiftExample
      201 Full C.T. Blue−1373,200 K light → about 5,700 K
      202 Half C.T. Blue−783,200 K light → about 4,260 K
      203 Quarter C.T. Blue−353,200 K light → about 3,600 K
      204 Full C.T. Orange+1596,500 K light → about 3,200 K
      205 Half C.T. Orange+1096,500 K light → about 3,800 K
      206 Quarter C.T. Orange+646,500 K light → about 4,590 K

      The example column converts (1,000,000 ÷ starting kelvin + mired shift) back to kelvin. The "Changing with a filter" line in the tool gives the mired difference needed to move the current light to 2,700, 3,200, 5,600 or 6,500 K, where + is orange (warmer) and − is blue (cooler). Filter numbers and values differ between manufacturers, so check the chart of the filter you use. The Nikon D3500 manual lists one step on the amber–blue axis of white balance fine-tuning as about 5 mired.

      Kelvin values of camera white balance presets

      A white balance preset stands for the color temperature of the light you are shooting under. The same name gets different values from different makers. The quick picks in the tool use the Canon values.

      PresetCanon EOS R50Nikon D3500
      Tungsten (Canon) / Incandescent (Nikon)3,200 K3,000 K
      White fluorescent (Canon) / Fluorescent (Nikon)4,000 K3,700 K
      Daylight (Canon) / Direct sunlight (Nikon)5,200 K5,200 K
      FlashAuto (fixed at about 6,000 K)5,400 K
      Cloudy6,000 K6,000 K
      Shade7,000 K8,000 K

      Both manuals describe these as approximate values. Canon sets the flash automatically when the Speedlite sends color temperature information, and otherwise fixes it at about 6,000 K. Setting white balance to a lower kelvin than the real light makes a photo bluer, and a higher kelvin makes it more yellow.

      Common mistakes

      • Thinking higher kelvin means warmer light: it is the opposite. 3,000 K is the orange "warm" light, and 6,500 K and above is the bluish "cool" light. A blackbody itself gets hotter as the number rises, but the everyday words for the look of light run the other way.
      • Using 6,500 K as white #FFFFFF: a 6,500 K blackbody is #FFF8FE. What matches the white of a screen is daylight D65 (about 6,504 K).
      • Feeding HEX straight into LED brightness: HEX and RGB carry gamma and are not proportional to the amount of light. For things that handle light quantity, such as PWM on an RGB LED or a 3D shader, use linear RGB (1.000, 0.477, 0.154 for 3,000 K). Real LEDs differ from chip to chip and need their own measurement-based calibration.
      • Expecting a HEX round trip to return the same kelvin: entering #FFB86D, the HEX of 3,000 K, gives 3,007 K. This comes from rounding RGB to whole numbers from 0 to 255.
      • Assuming the same color temperature means the same light: two 4,000 K lights with different Duv have different green or pink tints, and a different spectrum changes how well objects' colors show (color rendering).
      • Giving a color temperature to colored light: for light far from the blackbody locus, such as a red or green LED, the CIE does not use color temperature. The tool leaves it blank when Duv exceeds 0.05.

      Limits and cautions

      • Screen colors assume an sRGB monitor. On a wide-gamut display, or one with a night mode that shifts its color temperature, the same HEX looks different.
      • The color shown is the brightest version of that color. Actual lamp brightness (lumens, lux) and how the eye adapts to the light are not included.
      • Colors for light below about 1,900 K are outside sRGB and are approximations with white mixed in.
      • The LED range check is an approximation based on the CCT and Duv ranges of ANSI C78.377-2008, and it leaves out the bins added in the 2015 and 2017 editions (2,200 K, 2,500 K and others).
      • The xy coordinates from a meter must be CIE 1931 2° values. Values for the 10° observer or another coordinate system give different results.
      • Color rendering (CRI, Ra) needs the whole spectral distribution, so this tool does not calculate it.

      Reference date The sources were checked on 2026-10-20.

      Sources

      Frequently asked questions

      What color is 3,000 K in HEX?

      Shown as brightly as possible on a screen (sRGB), a 3,000 K blackbody is #FFB86D, or rgb(255, 184, 109). It is a warm white with an orange cast. 2,700 K is #FFAD59 and 4,000 K is #FFD3A5.

      Why isn't 6,500 K plain white (#FFFFFF)?

      Because the white of a screen is CIE daylight D65, not a blackbody. D65 has a correlated color temperature of about 6,504 K but lies on the green side of the blackbody locus, so a 6,500 K blackbody comes out as a slightly pink #FFF8FE. Switch the reference curve to "Daylight D" and 6,504 K gives #FFFFFF.

      Does a higher kelvin mean a warmer color?

      No. The lower the kelvin, the more orange and warm the light; the higher it is, the bluer and cooler. A 3,000 K bulb is called warm, and a 6,500 K daylight bulb is called cool.

      How do I find the color temperature of a HEX color?

      Choose "Color → kelvin" and enter the HEX code. The color is converted to CIE 1960 uv coordinates, and the temperature of the nearest point on the blackbody locus is shown as the correlated color temperature, with the distance as Duv. For example, #FFD7A8 is 4,098 K with a Duv of +0.0014.

      What is Duv?

      Duv measures how far a color sits from the blackbody locus. Plus means the green side and minus the pink side, so two lights with the same color temperature but different Duv can have a different white tint. The CIE says not to use a color temperature beyond 0.05.

      How is mired calculated?

      Divide 1,000,000 by the kelvin value. 3,200 K is about 313 mired and 5,600 K is about 179 mired, so matching a 3,200 K light to 5,600 K takes −134 mired, which means a blue filter. Filter makers label their filters with this mired shift.

      Is a 4,000 K LED bulb exactly 4,000 K?

      It is a range, not a point. ANSI C78.377 (2008 edition) sets nominal 4,000 K as a target of 3,985 K ± 275 K, or 3,710–4,260 K, with Duv within 0.001 ± 0.006. If you enter measured xy coordinates you can check whether they fall in that range.

      Can I feed RGB values straight into a smart bulb or LED?

      HEX and RGB carry gamma and are meant for screens. LED control or 3D shaders that work with the amount of light need linear RGB, which is 1.000, 0.477, 0.154 for 3,000 K. Real LEDs also differ from chip to chip, so hitting an exact color temperature takes measurement-based calibration.