Skip to content
Science Astronomy Atmosphere

Vol. Science · Astronomy · Star color

Blackbody
heat and color

A hot dense surface shines with a continuous spectrum. Planck’s law gives the shape, Bλ(T). Wien’s law puts the peak at λmax = b/T. Stefan–Boltzmann gives the power: surface flux σT⁴, and luminosity L = 4πR²σT⁴. Slide the temperature and a radius in solar radii. The curve, the peak, and the luminosity move together. The same temperature ladder is the color lesson on the stars desk. How bright that light looks from Earth is magnitude. The wavelength ladder itself is the electromagnetic spectrum.

Classroom schematic. The curve is a perfect blackbody. NASA’s Webb caption says stars are not perfect blackbodies, and that the blackbody curve still describes the overall shape quite well. Absorption lines are missing here. The shaded band is the NASA Imagine classroom optical window, about 400–700 nm, the same cut as the EM spectrum desk. The color chip is an sRGB approximation of the chromaticity: it depends on the display and the eye, and it is not the star’s luminance. City light that hides faint red stars is the light-pollution desk. Not a stellar-atmosphere model and not a catalog.

Interactive · Curve, peak, and luminosity

Log wavelength · curve normalized to its peak · visible band shaded

  • Bλ / peak
  • Wien peak
  • 400–700 nm

Cited presets · uncertain ones say so

K
R☉

Why the colors run that way

Blue-white is hot. Orange-red is cool.

Wien’s law slides the peak to shorter wavelengths as the temperature rises. A 40,000 K curve peaks in the ultraviolet. The visible window, about 400–700 nm, sits on the long-wavelength side, where the curve is falling toward the red. That slice has more blue than red, so the star reads blue-white even though most of the energy is invisible. A 2,000 K curve peaks in the infrared. The same window is then the short-wavelength tail, rising steeply toward the red, so blue is scarce and the star reads orange-red.

The nominal Sun, 5772 K, peaks near 502 nm. That is green. The disk is not green, because the curve is broad and the eye mixes the whole band. NASA’s Webb illustration makes the same point with round temperatures: an 8,000 K star looks bluer than a 3,000 K star. Those two figures are the illustration’s, not the presets on this page.

A real spectrum only approximately follows the curve. Atoms and ions in the atmosphere cut absorption lines out of the continuum. Vega is a fast rotator seen nearly pole-on, so one temperature was never the whole star. Betelgeuse’s radius is uncertain by about a quarter. The chip is a further approximation: sRGB on this display, at a comfortable brightness, with no absorption lines.

Literacy · the words on the curve

Planck’s law
Bλ(T) = 2hc²/λ⁵ / (ehc/λkT − 1). Spectral radiance per wavelength of a perfect blackbody. h, c, and k are the defined SI constants. The curve on this page is that function, divided by its own peak so the shape stays on the canvas. Absolute power is the flux and luminosity readouts, not the height of the line.
Wien’s law
λmax T = b. CODATA lists b = 2.897771955… × 10⁻³ m·K, exact. This desk computes b from hc/k divided by the root of (5 − x)ex = 5. Hotter means a shorter peak.
Stefan–Boltzmann
Surface flux is σT⁴. Luminosity is 4πR²σT⁴. σ = 2π⁵k⁴ / (15h³c²) = 5.670374419… × 10⁻⁸ W m⁻² K⁻⁴, the CODATA exact value. This is the flux at the surface, not the sunlight at Earth.
Two solar luminosities
L / L☉ formula divides by the same expression at the IAU nominal solar radius and nominal effective temperature, so the Sun preset reads 1. L / L☉ nominal divides by the IAU nominal luminosity, 3.828 × 10²⁶ W. At those nominal inputs the two agree at the digits this desk prints.
Visible window
The shade is 400–700 nm, the NASA Imagine classroom optical band. The color integral uses the CIE 1931 2° color-matching functions from 360 to 830 nm, every 5 nm of the CIE 2019 table, which is a wider cut than the shade.
Color chip
The blackbody spectrum is weighted by those color-matching functions, converted with the IEC 61966-2-1 sRGB primaries and transfer function, and scaled so the brightest channel fills the chip. That throws away luminance on purpose. If a channel would have gone negative, it is clipped and the caption says so. Perceived color still depends on the display and the eye.

Sources · CODATA, IAU, CIE, NASA, and the papers

Cited, not invented

Classroom picture of a blackbody. λmax = b/T with the CODATA constant. L = 4πR²σT⁴, compared with the same formula at the IAU 2015 nominal Sun. The chip is an sRGB approximation. Real stellar spectra have absorption lines. Not a catalog. Earthrise preview: NASA / Bill Anders (public domain).

Keep going

Letters

Stars

OBAFGKM and life phases. Color follows temperature. This curve is the reason.

Brightness

Magnitude

Apparent m and absolute M. Luminosity is not the same number as how bright a star looks.

Neighborhood

Nearest stars

Proxima and the next neighbors. A cool red dwarf is the closest star.

Ladder

EM spectrum

Radio to gamma, and a Wien peak on the same temperature idea. The visible sliver is 400–700 nm.

Night

Light pollution

Why a city sky hides the faint red end of the stellar census.

Neighborhood

Solar map

The nominal Sun whose temperature this page starts on.