When the electrons that are excited by the energy of burning drop back into lower energy levels they emit light at the wavelength of colour.
When metals are burnt, metal oxides(some coloured) are formed.
When metals are burnt under high temperature, will they turn to plasma state? If so, should the metal ions be responsible for the colours and sparks?
Which one is the reason for the beautiful colours of fireworks?