Sorting stars by temperature
Astronomers classify stars by the absorption lines in their spectra, which depend mostly on surface temperature. The Harvard system orders the main classes from hottest to coolest as O, B, A, F, G, K and M. This reference gives the effective-temperature range, colour, typical mass and example stars for each class, plus a lookup that maps any temperature to its spectral class.
How it works
Each class spans a band of effective temperature, in kelvin:
O 30,000 – 60,000 K blue
B 10,000 – 30,000 K blue-white
A 7,500 – 10,000 K white
F 6,000 – 7,500 K yellow-white
G 5,200 – 6,000 K yellow (the Sun)
K 3,700 – 5,200 K orange
M 2,400 – 3,700 K red
Each class is subdivided 0–9, with 0 hottest, so the Sun is G2. A luminosity class in Roman numerals is appended (V = main-sequence dwarf, III = giant, I = supergiant), giving the Sun’s full type G2V. The lookup returns the class whose temperature band contains the value you enter.
Tips and notes
- Mnemonic: “Oh Be A Fine Girl/Guy, Kiss Me” gives the order O B A F G K M.
- Hotter means bluer; cooler means redder. Colour tracks temperature.
- The Sun is an ordinary G2V star, neither especially hot nor cool.
- Cool M-type red dwarfs are the most common stars in the galaxy.
- Classes L, T and Y extend the sequence to brown dwarfs below M.