Each element has a different set of energy levels. Use this fact to "explain" whay the colour of the light emitted by an element in the gaseous state is characteristic of the element.

When an electron falls from one of the higher energy levels to a lower energy level, light is emitted. That light is characteristic of the difference in the energy levels and that is characteristic of the element.

Thank you every so much