Answer:
Electrons jump between energy levels, absorbing and releasing energy as they are jumping between energy levels. The energy given off corresponds to different frequencies of light. If the light is visible, we see these frequencies as different colors.