Blackbody Radiation and Star Colour

Change a star's temperature and watch its spectrum, peak wavelength and colour shift with Planck's and Wien's laws

Intermediate
5,772 K

Logarithmic slider from 2,000 K to 40,000 K

Presets

Vertical axis

Perceived colour

5,772 K · #fff1ea

5,772 K
Temperature
5,772 K
Peak λmax
502 nm
Peak lies in
Visible
Spectral class
G
Power per m², σT⁴
62.9 MW
Per m², vs the Sun
1.00×
Visible share
43.8 %
Colour
#fff1ea
  • Current, 5,772 K
  • Pinned, 5,772 K
  • Wien peak λmax

The shaded area under the current curve is coloured where your eye can see it, 380 to 750 nm. Pin up to three curves to compare. The colour swatch is the spectrum seen by a standard human eye, scaled to full brightness, so it shows hue rather than how bright the star is.

How a star's colour reveals its temperature

A blackbody is an ideal object that absorbs all light that falls on it and, when hot, emits light with a spectrum that depends only on its temperature. Stars are not perfect blackbodies, because atoms in their atmospheres absorb particular wavelengths, but their overall spectra follow blackbody curves closely.

In 1900 Max Planck found the formula for that curve. To make it work he had to assume that light is emitted in packets of energy E = hf, the first step toward quantum physics. The curve rises steeply from short wavelengths, peaks, then falls away in a long tail toward the infrared.

Two simpler laws come out of Planck's formula. Wien's law says the peak wavelength is inversely proportional to temperature, so hot stars peak in the ultraviolet and cool stars in the infrared. The Stefan-Boltzmann law says the total power per square metre grows as the fourth power of temperature: double the temperature and each square metre gives out 16 times as much.

Everything hot glows

Any object above absolute zero emits light because its charged particles jiggle. The spectrum depends only on temperature for an ideal blackbody.

Hotter peaks shorter

Double the temperature and the peak wavelength halves. That is why heated metal goes from dull red to orange, yellow and then white.

Hotter is brighter everywhere

A hotter blackbody out-shines a cooler one at every wavelength, and its total power per square metre grows as T⁴.

Colour is a mix

The eye blends the whole visible part of the curve. A star's colour is that blend, not the colour at the peak.

How to use this visualizer

  1. 1
    Drag the Temperature slider or pick a preset. Watch the peak marker, the shaded visible band and the colour swatch below the graph.
  2. 2
    Press Pin curve to keep the current spectrum as a dashed comparison. You can pin up to three; the Sun at 5,772 K is pinned to start with.
  3. 3
    Switch the vertical axis to Log when the curves differ a lot. Hot stars are so much brighter that cool ones vanish on a linear axis.
  4. 4
    Press Play to sweep the temperature from 2,000 K to 40,000 K and back.
  5. 5
    Read the readouts: peak wavelength from Wien's law, power per square metre from σT⁴, and how much of the light falls in the visible band.

Key formulas

Planck's law

B(λ, T) = (2hc² / λ⁵) × 1 / (e^(hc / λkT) − 1)

B(λ, T)
spectral radiance: power per area, per steradian, per unit wavelength
h
Planck constant, 6.626 × 10⁻³⁴ J s
c
speed of light, 2.998 × 10⁸ m/s
k
Boltzmann constant, 1.381 × 10⁻²³ J/K

Wien's displacement law

λmax = 2.898 × 10⁻³ m K / T

λmax
wavelength where B(λ, T) is largest; for the Sun, 2.898 × 10⁻³ / 5772 = 502 nm

Stefan-Boltzmann law

power per m² = σT⁴  ·  L = 4πR²σT⁴

σ
Stefan-Boltzmann constant, 5.67 × 10⁻⁸ W m⁻² K⁻⁴
L
total luminosity of a star of radius R

Spectral classes

Peak wavelengths come from Wien's law at each end of the temperature range.

ClassSurface temperaturePeak wavelengthColourExamples
Oabove 30,000 Kbelow 97 nmBlueZeta Puppis, Mintaka
B10,000 to 30,000 K97 to 290 nmBlue-whiteRigel, Spica
A7,500 to 10,000 K290 to 390 nmWhiteSirius A, Vega
F6,000 to 7,500 K390 to 480 nmYellow-whiteProcyon, Canopus
G5,200 to 6,000 K480 to 560 nmYellowish whiteSun, Alpha Centauri A
K3,700 to 5,200 K560 to 780 nmOrangeArcturus, Aldebaran
M2,400 to 3,700 K780 to 1,200 nmOrange-redBetelgeuse, Proxima Centauri

Common misconception

A star does not look the colour of its peak wavelength. The Sun peaks in the blue-green, yet nobody sees a green Sun: its curve is so broad that every visible colour arrives in similar amounts and the mix looks white. No temperature gives a green star. Also, in everyday life red means hot and blue means cold, but for glowing objects it is the other way round: blue stars are the hottest.

Real-world applications

Measuring star temperatures

Astronomers compare a star's brightness through blue and visual filters, or fit its spectrum, to read off its surface temperature without ever going there.

Thermal imaging

At 310 K a human body peaks near 9.3 µm. Thermal cameras see that infrared glow, so warm bodies stand out in total darkness.

Ear and forehead thermometers

Non-contact thermometers measure the infrared power from your skin and use the Stefan-Boltzmann law to turn it into a temperature.

The cosmic microwave background

The afterglow of the Big Bang is the most perfect blackbody ever measured, at 2.725 K, peaking near 1.06 mm in the microwave band.

Light bulbs and colour temperature

A 2,700 K filament peaks near 1,070 nm, so most of its energy is infrared heat. Bulb and camera "colour temperatures" use the same scale.

Steel and glass making

Optical pyrometers judge the temperature of molten metal from the colour and brightness of its glow.

Practice problems

Problem 1: Temperature from the peak

A star's spectrum peaks at 290 nm. Estimate its surface temperature and how much more power each square metre emits than the Sun's surface (5,772 K).
Show solution

T = 2.898 × 10⁻³ / 290 × 10⁻⁹ ≈ 9,990 K

Power ratio = (9,990 / 5,772)⁴ = 1.731⁴ ≈ 8.97

About 10,000 K, an A-type star emitting about 9 times as much per m²

Problem 2: Why thermal cameras work

Human skin is at about 310 K. At what wavelength does it emit most strongly, and could you see it with your eyes?
Show solution

λmax = 2.898 × 10⁻³ / 310 = 9.35 × 10⁻⁶ m = 9.35 µm

That is about 12 times longer than the red end of the visible band at 750 nm

Near 9.3 µm, in the thermal infrared: invisible to us, but bright to a thermal camera

Spotted a mistake on this page?

Wrong formula, broken animation or confusing wording. Tell us and we will fix it.