When a beam of white light passes through a prism, the different wavelengths that make it up are refracted differently, dispersing the light into a band of colors that correspond to all the wavelengths that make it up.

Higher frequency radiation (violet) is refracted more than lower frequency radiation (red), giving rise to the separation of light into the different radiations that compose it, called the spectrum of visible light.