Glowing metals and the light that is emitted from burning chemical compounds with various molecular structures play a big role in producing visible colors.
EX: aluminum is used to produce silver and white flames, and also sparks
Calcium is used to deepen firework colors. It also produces orange fireworks