Light with a fingerprint
Hold a compound of lithium in a hot flame and the flame turns crimson. Sodium turns it yellow, potassium lilac, calcium orange-red and copper green. Chemists use this as a quick test for which metal ion is in a compound: a flame test.
The colour comes from the electrons. Heat gives some electrons enough energy to jump up to a higher energy level, further from the nucleus. They don’t stay there. They fall back down, and each one gives out the energy it gained as a tiny packet of light.
Why each element has its own colour
An electron can only sit in certain energy levels, and the gaps between them are different in every element. So each element can only give out light of certain exact colours, its own set of wavelengths. Spread the light out with a prism or a grating and instead of a rainbow you see a few bright lines. That pattern is an emission spectrum, and no two elements have the same one.
The simulation shows the visible lines of six elements, measured by NIST. Sodium’s light is almost all in two lines very close together near 589 nm. That is why old sodium street lamps glowed such a pure orange-yellow.
Seeing what you can’t reach
Because every element has its own lines, light can tell you what something is made of without touching it.
- Astronomers find the elements in stars from the lines in their light. Helium was found in the Sun’s spectrum in 1868, 27 years before anyone found it on Earth, and was named after the Greek for Sun.
- Laboratories use flame emission spectroscopy: an instrument measures the lines from a sample in a flame. It can pick out several metals in a mixture at once and measure how much of each is there, which a flame test by eye can’t do.
Try the second mode in the simulation. A mystery sample shows up at the top, and you match its lines to the elements below.
Flame tests use a hot flame and compounds that can be toxic. They are done in a school lab with a teacher, eye protection and a risk assessment. Don’t try them at home, and never burn chemicals in a fire to see the colours.