The colors of the visible electromagnetic spectrum. Shown with frequency increasing (wavelength decreasing) to the right.
Excited atoms emit quantized light energy which appears as discontinuous lines in an emission spectrum. These exact frequencies correspond to energy level differences.
Atoms can absorb light of the exact frequencies corresponding to energy level differences. This appears as black lines in the spectrum.