Each wavelength is bent by the prism and is slowed down to a different degree. Because each wavelength is slowed down by a different degree, each wavelength is bent by the prism at a different angle. As a result, the beam of white light is separated into different colors and appears as a rainbow when it exits the prism.