Why does sodium chloride burn orange?
When sodium ions are heated, electrons move from the ground state to the excited state, and because they are unstable in the excited state, they immediately return to lower energy levels in the ground state. As they do this, energy is released in the form of light. In the case of sodium, it produces orange light.