HOW DOES A FIREWORK PAINT THE SKY?
A firework can turn a black night sky red, green, blue, gold or brilliant white in a fraction of a second. But the colours aren’t produced by dyes or pigments. They come from atoms and ions absorbing energy — and then giving that energy back as light.

WHERE DO THE COLOURS COME FROM?
Inside a firework are compounds containing different metal ions. When the firework burns, energy is transferred to electrons in those atoms and ions, pushing them into higher energy levels. They don’t stay there for long.
As the electrons fall back to lower energy levels, they release that extra energy as light. Because every element has its own particular set of energy levels, different elements produce different characteristic colours.
YOU’VE PROBABLY DONE THIS YOURSELF
If you’ve ever carried out flame tests in a school laboratory, you’ve already seen the chemistry behind firework colours. Put a small amount of a metal compound into a Bunsen flame and the flame changes colour — sodium gives its intense yellow, potassium lilac, lithium and strontium shades of red, barium green and copper compounds blue-green.
A firework uses the same basic idea — just on a considerably more spectacular scale. Instead of colouring a Bunsen flame, those excited atoms and ions help paint the night sky.

WHY IS BLUE SO DIFFICULT?
Blue is one of the hardest firework colours to produce well. Copper compounds can create beautiful blue light, but the chemistry is surprisingly temperamental. The temperature has to be high enough to excite the colour-producing species — but if it becomes too hot, those species can break down and the blue is weakened or lost.
Firework makers therefore face a chemical balancing act: enough heat to produce an intense colour, but not so much that the chemistry responsible for that colour is destroyed. That’s one reason a really deep, vivid blue is particularly prized in a firework display.
WHERE NEXT?
What makes fireworks sparkle, crackle and glitter?
Some fireworks disappear in a flash. Others leave brilliant trails of gold and silver hanging in the sky. So what makes those sparks — and why can some of them seem to hang in the air?