006 / LIGHT AND HEAT
What colour is temperature?
Heat a perfect blackbody from room temperature to a blue giant. The spectrum shifts and the colour changes — now look at it through Earth’s atmosphere.
Find a green star
Set about 5000 °C: the spectral peak lands on green, yet the disk stays white. Then lower the Sun towards the horizon and watch it redden like a sunset.
Theory behind the experimentWhy hot objects glow in different colours and why a green spectral peak doesn’t make a green starPlain explanation, equations and how the model works
In plain words
Anything warmer than absolute zero gives off thermal radiation. At room temperature almost all of it is infrared, which the eye can’t see. So an object not glowing doesn’t mean it isn’t radiating.
As it heats up, it radiates more and the typical wavelengths get shorter. A hot enough object starts to glow visibly red, then orange, and when very hot, white and bluish. The experiment uses a blackbody: an ideal object that absorbs all light falling on it. The name is about absorbing; it doesn’t stop the object from glowing on its own.
The chart shows the whole spectrum, how much radiation falls at each wavelength. The disk’s colour depends on the entire visible part of the spectrum and on how our vision works. It isn’t the colour of the chart’s highest point. Even with the peak on green, the body still gives off plenty of red and blue light, and together that can look almost white.
On the way to the observer, the atmosphere changes the light. When the source is low over the horizon, the beam passes through more air. Scattering weakens the short-wavelength part of the direct light more, and gases absorb light in certain ranges. So direct light reddens and dips appear in the spectrum. The source itself doesn’t cool down.
Try it yourself
- Compare the “Human”, “Bulb” and “Sun” presets. Watch where the peak sits and the visible share, not just the disk colour.
- Set about 5000 °C (roughly 5273 K). The spectral peak lands on green, but the disk doesn’t turn vivid green. Compare how narrow the peak is next to the whole visible range.
- Pick “Sun”, turn on “View through Earth’s atmosphere” and lower the source to the horizon. The temperature stays the same; the light changes because of the air in its path.
Physics and equations
The spectral radiance of a blackbody is given by Planck’s law:
Here is the wavelength in metres, the absolute temperature in kelvin, Planck’s constant, the speed of light, and Boltzmann’s constant. is radiance per unit wavelength, in W·m⁻²·sr⁻¹·m⁻¹. Don’t plug degrees Celsius into it; convert first: .
Where the peak of the wavelength spectrum sits is given by Wien’s displacement law:
Double the temperature and the peak wavelength halves. But the peak is just one point on a broad curve; it doesn’t set the colour by itself. One more subtlety: if you plot the spectrum against frequency, the peak lands somewhere other than converted with , because the distribution’s density itself changes.
To get a colour, the spectrum is weighted by colour-matching functions:
Here is the spectrum of light reaching the observer, the three barred functions belong to the CIE 1931 standard observer, and is an overall normalisation. These functions come from colour-matching experiments and aren’t literally the sensitivity curves of the three cone types. The XYZ coordinates are then converted to a screen colour. That way the whole visible spectrum counts, not one wavelength.
How the atmosphere is handled
The spectrum of direct light after passing through the air is
is the fraction of light that gets through, the optical depth per unit air mass, and the relative air mass. It tells you how many times longer the beam’s path through the atmosphere is than with the source overhead. It has nothing to do with the mass of air in kilograms.
The experiment takes a reference transmission spectrum at air mass 1.5 and rescales it for other altitudes:
This is the Beer-Lambert law. The reference spectrum comes from the ASTM G173 standard (SMARTS 2.9.2 model): direct sunlight at ground level divided by sunlight outside the atmosphere. It includes Rayleigh and aerosol scattering and absorption by oxygen, water vapour, carbon dioxide and ozone. It’s a calculation for set standard conditions, not data about today’s sky above you.
More: altitude and air mass
For an altitude above the horizon (in degrees) the Kasten-Young approximation is used:
The constants are fitted to measurements: , , . The lower the source, the larger the air mass and the more the direct light changes. On the page the altitude goes from 1° to 90°.
How the model works
The source spectrum is that of an ideal blackbody. Presets with familiar names just set typical temperatures; they don’t reproduce every detail of how a person, a bulb or a particular star radiates.
Colour uses the CIE 1931 2° observer functions from 360-830 nm at 1 nm steps and an XYZ to sRGB conversion for a D65 display, without modelling how the eye adapts to lighting. Colours the screen can’t show are brought into range by mixing in white. Disk brightness is illustrative: the huge range of brightness is squeezed logarithmically over 12 orders of magnitude below the Sun. The screen doesn’t reproduce a star’s real surface brightness.
“Visible share” is the fraction of emitted energy between 380-780 nm, before the atmosphere. “Visible light that gets through” is computed differently: it’s the ratio of after the atmosphere to before, so it accounts for how sensitive vision is. The two percentages answer different questions and shouldn’t be mixed up.
Atmospheric data cover 280-4000 nm. Below 280 nm the model atmosphere is opaque (ozone). Beyond 4 µm there’s no data and no atmosphere is applied; that region is hatched on the chart. That doesn’t mean the real atmosphere is transparent there. Rescaling to other altitudes is approximate, especially for narrow saturated absorption lines. Diffuse skylight isn’t computed separately.
Sources and further reading
CIE: 1931 colour-matching functions ↗: the source data for the colour calculation.
ASTM G173 reference spectra ↗: a description of the atmospheric spectra.