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
Logarithmic slider from 2,000 K to 40,000 K
Presets
Vertical axis
Perceived colour
5,772 K · #fff1ea
- 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
Hotter peaks shorter
Hotter is brighter everywhere
Colour is a mix
How to use this visualizer
- 1Drag the Temperature slider or pick a preset. Watch the peak marker, the shaded visible band and the colour swatch below the graph.
- 2Press 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.
- 3Switch 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.
- 4Press Play to sweep the temperature from 2,000 K to 40,000 K and back.
- 5Read 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.
| Class | Surface temperature | Peak wavelength | Colour | Examples |
|---|---|---|---|---|
| O | above 30,000 K | below 97 nm | Blue | Zeta Puppis, Mintaka |
| B | 10,000 to 30,000 K | 97 to 290 nm | Blue-white | Rigel, Spica |
| A | 7,500 to 10,000 K | 290 to 390 nm | White | Sirius A, Vega |
| F | 6,000 to 7,500 K | 390 to 480 nm | Yellow-white | Procyon, Canopus |
| G | 5,200 to 6,000 K | 480 to 560 nm | Yellowish white | Sun, Alpha Centauri A |
| K | 3,700 to 5,200 K | 560 to 780 nm | Orange | Arcturus, Aldebaran |
| M | 2,400 to 3,700 K | 780 to 1,200 nm | Orange-red | Betelgeuse, Proxima Centauri |
Common misconception
Real-world applications
Measuring star temperatures
Thermal imaging
Ear and forehead thermometers
The cosmic microwave background
Light bulbs and colour temperature
Steel and glass making
Practice problems
Problem 1: Temperature from the peak
Show solutionHide 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
Show solutionHide 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.