An ideal object that absorbs all radiation falling on it and emits a spectrum that depends only on its temperature; stars come close to it.
Also called: blackbody radiation, Wien's law
A black body is an ideal object that absorbs all the light it receives and radiates according to its temperature alone. Max Planck worked out the shape of this continuous spectrum in 1900. Two laws follow. Wien's law says that the wavelength of peak emission is inversely proportional to temperature: about 2,898 micrometers divided by the temperature in kelvins. The Stefan-Boltzmann law says that the power radiated per unit area grows as the fourth power of temperature: doubling the temperature multiplies the radiation by 16.
Stars are not perfect black bodies, but they come close enough for their color to reveal their temperature. The Sun, with an effective temperature of 5,772 K, emits most strongly around 500 nm. A star at 3,500 K, such as Betelgeuse, peaks in the near infrared and looks orange; a star above 10,000 K, such as Rigel, peaks in the ultraviolet and looks bluish. The human body, at about 310 K, radiates around 9 micrometers, in the infrared. The most perfect black body known is the cosmic microwave background, at 2.725 K.
As an observer, compare Betelgeuse and Rigel in Orion, or Antares and Spica: the difference in color is visible to the naked eye, and even more so when you slightly defocus a star in a telescope. The color index measures this difference.