When heated, different metal atoms produce flames of different colors. That is what causes the many brilliant colors of a fireworks display.
Dennis McColeman/Getty Images