Light arises from electrons changing (decreasing) energy levels in an atom.
If one can have emission, one can have absorption, whereby a photon is absorbed and the electron increases in energy within the atom.
Absorption and emission occur at discrete energies with respect to the atom. On the other hand, atoms are vibrating (in a solid, liquid and polyatomic molecules) or in the case of a gas, the atoms/molecules have some velocity, therefore the Doppler effect affects the frequency of the light. In addition, there is scattering of photons by electrons, and the scattered photon has a reduced frequency (Compton effect) or increased frequency (inverse Compton effect).