On this page
Diwali is the festival of lights, and nothing lights up the night sky quite like a spectacular fireworks display. Have you ever wondered how a plain grey cracker produces such brilliant bursts of red, green, yellow and blue? The answer is a fascinating chemistry lesson playing out hundreds of feet in the air, relying on precise mixtures of elements and their atomic properties.
Which metal salts produce colours in fireworks?
Every firecracker contains two main parts: the gunpowder that launches and explodes it, and small chemical pellets called "stars". These stars contain the oxidisers, fuel and, crucially, the colorants.
The colours you see are determined entirely by which metal salts are packed inside. The United States Geological Survey (USGS) notes that specific elements yield distinct colours:
Red: Strontium salts
Green: Barium salts
Yellow: Sodium salts
Blue: Copper compounds
If you mix these elements, you get entirely new colours. Strontium and sodium together produce a brilliant orange, while copper and strontium make a deep lavender.
How do electrons emit coloured light?
When a firecracker explodes, the immense heat from the gunpowder acts as an energy source for the metal atoms in the stars. This triggers a process called luminescence. The heat energy causes electrons within the metal atoms to jump from their stable ground state to a higher, unstable "excited" state.
Because this excited state is unstable, the electrons immediately fall back down to their original energy level. As they drop, they must release the extra energy they absorbed. They do this by emitting a photon, which is a fundamental particle of light.
Since each element has a unique electronic configuration, the energy gaps between these levels act like a chemical fingerprint. The exact energy gap determines the wavelength of the light (which you can calculate using the E = 1240/λ formula). Strontium's electrons fall across a gap that releases a red wavelength, while copper's electrons release a higher-energy blue wavelength.
Why is blue the hardest colour to make in fireworks?
While red and green fireworks are relatively easy to perfect, pyrotechnicians consider a deep, vibrant blue to be the ultimate challenge.
The copper chloride molecules used to produce blue light are highly fragile. They only emit a true blue light within a very narrow temperature window. If the firecracker burns too hot, the copper molecule simply breaks apart, and the blue colour washes out to a pale white or green.
Furthermore, if even a trace amount of sodium contaminates the mixture, its intense yellow emission will completely overpower the delicate blue light. Because of this, creating a perfect blue requires mastering the exact chemical ratios and burning temperatures.
Where else do we use these critical minerals?
The elements that light up the sky during Diwali are not just for entertainment. According to the USGS, many of these elements, including strontium, barium, titanium, zirconium and magnesium, are classified as critical mineral commodities because they are essential to modern industry.
Strontium, for example, is vital for oil and gas production as well as manufacturing ceramic magnets. Barium is widely used in medical imaging and diagnostics. Titanium and zirconium are critical for high-temperature ceramics, white pigments and aerospace metal alloys. Even the simple sodium used for yellow sparks is heavily utilised in producing PVC plastics and paper-pulping chemicals. The copper that gives us blue fireworks is, of course, the backbone of our global electronics and power generation infrastructure.
See it in action
Understanding how electrons jump between energy levels to emit photons per second is a core part of the Bohr model of the atom, which you will study in Class 11 physics and chemistry.
Visualising these invisible transitions can be tricky from a textbook page. In the Fermi Simulation Lab, you can interact with atomic models, excite electrons, and watch how different energy gaps produce the exact emission spectra that light up the Diwali sky. Next time a blue firework goes off, you will know exactly how much chemical precision went into that single burst.



