Colour is a thermometer, and it reads across the galaxy
A blacksmith can tell the temperature of iron by its colour: dull red, then orange, then yellow, then white. The judgement is good to within a hundred degrees or so with practice, and it requires no contact with the metal.
Stars do the same thing, for the same reason, and the measurement transfers without modification across a hundred thousand light years. Two brightness measurements through two filters give a temperature, and no other information about the star is needed — not its distance, not its size, not its composition.
The curve that only knows one number
Any body in thermal equilibrium radiates with a spectrum that depends on its temperature and on nothing else. Not what it is made of, not how big it is, not what it did yesterday — one number fixes the entire shape.
That is a remarkable claim, and it took until 1900 to justify. Planck’s law gives the emitted power per unit wavelength,
and its derivation required assuming that energy came in discrete packets, which Planck regarded as a mathematical trick. It was not.
Two consequences carry all the practical weight. The peak wavelength moves inversely with temperature — Wien’s law, — so hotter means bluer. And the total output per unit area rises as the fourth power — Stefan–Boltzmann, — so a small temperature difference is a large brightness difference.
The fourth power is the more startling of the two. A star twice as hot radiates sixteen times as much from every square metre of its surface, which is why the range of stellar luminosities is so much wider than the range of stellar temperatures.
Turning that into a measurement
Nobody measures a full spectrum to get a temperature. Two filters are enough.
A colour index is the difference between magnitudes in two bands, conventionally for blue and visual. Since a magnitude is a logarithm, a difference of magnitudes is a ratio of fluxes, and that ratio is fixed by the shape of the Planck curve — which is fixed by the temperature.
A hot star emits more in blue than in visual, so its magnitude is smaller than its , and is negative. A cool star gives a positive index. The calibration is a monotonic curve: is about 30,000 K, is about 10,000 K, is the Sun at 5,772 K, and is about 3,500 K.
Two numbers, a subtraction, and a lookup. It is cheap enough to do for every star in a survey image at once, which is why colour is the axis of the diagram that organises stellar astronomy — spectra are expensive and colours are free.
What “the temperature of a star” means
A star is not a blackbody and has no single temperature. Its centre is at fifteen million kelvin and its surface at six thousand, with everything in between.
What the colour measures is the effective temperature: the temperature of the blackbody that would radiate the same total power from the same area. It is a definition,
and it is well-defined and useful precisely because the emitting layer is thin. Below it the gas is opaque and photons cannot escape; above it the gas is transparent and there is nothing to emit. The transition happens over a few hundred kilometres out of 700,000, so a star has a surface in the optical sense even though it has no surface in any material sense.
The blackbody approximation works because that layer is very close to equilibrium. It is not exact — the deviations are the spectral lines, and they are where all the chemistry is.
The gaps, which are the good part
The continuum gives temperature. The lines give everything else.
Fraunhofer catalogued 574 dark lines in the solar spectrum in 1814 without knowing what they were. Kirchhoff and Bunsen identified them in 1859: each element absorbs at its own set of wavelengths, so the dark lines name the elements present in the star’s atmosphere. Astronomy acquired chemistry, at any distance, from a diffraction grating.
The lines also give the temperature a second time, and better. Which lines appear depends on the ionisation and excitation state of the gas, which is far more temperature-sensitive than the continuum shape. Hydrogen lines peak in strength around 9,500 K — weak in hotter stars because the hydrogen is ionised, weak in cooler because it is unexcited. That non-monotonic behaviour is what made the original spectral classification confusing, and Cecilia Payne resolved it in 1925 by showing the sequence was temperature rather than composition. Her thesis also concluded that stars are overwhelmingly hydrogen, which her examiner persuaded her to describe as probably spurious. It was correct.
Lines carry more still. Their Doppler shifts give velocities, which is how unseen companions are found and how the masses that calibrate stellar astronomy are obtained. Their widths give pressures, which separates giants from dwarfs. Their splitting in a magnetic field gives field strengths. One spectrum yields temperature, composition, velocity, surface gravity and magnetism — from a point of light.
Where it lands on the diagram
Colour is one axis of the Hertzsprung–Russell diagram, and putting it there is what makes the diagram a physical statement rather than a plot.
The horizontal axis is free — two filters. The vertical axis is expensive, because absolute luminosity requires a distance, and distances are the hard part of every quantity in the subject. The asymmetry in cost is why the diagram was first constructed for clusters, where every star is at the same unknown distance and the vertical axis can be left uncalibrated until one cluster is pinned down.
Colour, mass, and the chain between them
Temperature is not a free parameter of a star. It is downstream of the mass, through a chain with no adjustable steps in it.
The chain runs: mass fixes luminosity; mass fixes radius; luminosity and radius fix the effective temperature through . Nothing is left over. Measuring a main-sequence star’s colour is measuring its mass, indirectly and with a wide error bar, but with no other information required.
That is why the main sequence is a line on the diagram rather than a region. Two independent measurements — colour and brightness — are both functions of one underlying quantity, so the points cannot help but fall on a curve. The residual width is composition, age, rotation and unresolved companions, and separating those is most of the work of stellar astronomy.
Where the model stops
Stars are not blackbodies. The absorption lines remove a substantial fraction of the light, more in some bands than others, and the deficit is worst for cool stars where molecular bands dominate.
Reddening. Interstellar dust scatters blue light preferentially, so a distant star looks cooler than it is — and fainter than its distance implies, which are two errors that partly disguise each other. The correction is essential and is itself derived from colours, by comparing the observed index with the one the spectral type implies.
Not one temperature. Sunspots are 1,500 K cooler than their surroundings, and the colour of the disc as a whole is an average over a structured surface.
Not all thermal. Some emission is not thermal at all — synchrotron radiation, emission lines from hot gas — and applying a colour temperature to those gives a number with no meaning.
The figures share one distortion, and the first caption admits it: each curve is scaled to its own peak. That makes the shift visible and hides the fourth-power law entirely. Drawn at true relative amplitude, the 3,000 K curve would be a barely visible line at the bottom of the plot while the 10,000 K curve filled the frame — the honest picture, and one in which the colour shift would be invisible. No single plot shows both, which is why the second figure exists.
The ladder from here
Later rungs: Planck’s law derived, and the ultraviolet catastrophe it resolved. Wien’s law and Stefan–Boltzmann as its moments. Colour indices and the temperature calibration. Bolometric corrections. The spectral sequence and Payne’s resolution of it. Line formation and curve-of-growth analysis. Doppler broadening, pressure broadening, and Zeeman splitting. Reddening-free indices. And the ways colour lies: unresolved binaries, dust, and metallicity, each of which shifts the index by more than the measurement error.
Auguste Comte wrote in 1835 that the chemical composition of the stars was something humanity would never know. The spectroscope was turned on the Sun twenty-four years later.