When we supply energy to an electron then due to the absorption of energy it tends to move from a lower energy level to higher energy level.
And, when this electron moves from higher energy level to lower energy level then excess of energy absorbed by it is released in the form of visible light or radiation.
This emission of energy is also responsible for imparting color to a compound.
Thus, we can conclude that when an electron loses its energy then it may drop to a lower energy level.
electron loses energy (falls back) from a higher energy state to a lower one emitting photons at different frequencies for different energy transitions.