Firework color science

Why metals and firework materials create different colors

Pyro Lab uses flame-test colors and firework material references to organize its simulator presets. Some presets come from classic flame-test reactions, while others represent spark materials such as magnesium, iron, aluminum, titanium, zinc, and boron-inspired firework effects.

How firework colors work

The simplified version starts with heat, electron movement, and visible color. Real fireworks add more variables: oxidizers, binders, chlorine donors, burning temperature, and spark-producing metals.

Heat excites electrons

When a metal compound is heated, electrons in the atoms absorb energy and move to higher energy levels.

Light is released

As those electrons return to lower energy levels, they release energy as light at characteristic wavelengths.

Elements differ

Different elements and compounds emit different colors, which is why sodium, copper, lithium, barium, boron, and other materials can suggest different firework colors.

Color preset reference

These presets connect the simulator controls to common flame-test colors and firework material effects. They are practical color labels for the app, not instructions for making real fireworks.

PresetSymbolWavelength
Lithium
Li670.8 nm
Sodium
Na589.0 nm
Potassium
K766.5 nm
Calcium
Ca622.0 nm
Strontium
Sr460.7 nm
Barium
Ba553.6 nm
Copper
Cu510.6 nm
Cesium
Cs455.5 nm
Magnesium
Mg518.4 nm
Iron
FeMultiple
Aluminum
AlBroad spectrum
Titanium
TiBroad spectrum
Zinc
ZnBroad spectrum
Boron
BBroad molecular emission
Rubidium
Rb780.0 nm

Try the colors in the simulator

Open the simulator, choose a color preset, then click the sky to see how the selected flame-test or firework material reference changes the virtual fireworks.