Light waves actually consist of particles
photons
The photons of each color
carry a very specific amount of energy.


The atom absorps/emits just one photon
in the process of transitions.
(Slow motion: notice the missing photon.)