Flame-test science

Why metal elements create different firework colors

Pyro Lab uses flame-test color names to organize its simulator presets. The simulator is simplified, but the color idea comes from a real chemistry pattern: heated metal compounds emit characteristic colors of light.

How flame colors work

The explanation does not need decoration. It needs a clear chain from heat, to electron movement, to visible color.

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 have different energy gaps, which is why sodium, copper, lithium, barium, and other metals produce different colors.

Element color reference

These presets connect the simulator controls to common flame-test colors. They are used as practical color labels inside the app.

ElementSymbolWavelength
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

Try the colors in the simulator

Open the simulator, choose an element preset, then click the sky to see how the selected color changes the virtual fireworks.