The closely spaced tracks on a CD act as a diffraction grating, causing the diffraction of light into a spectrum of colors upon reflection.