White light is composed of all visible wavelengths. Each wavelength has a slightly different refractive index in glass (Cauchy's equation above).
Shorter wavelengths (violet, ~380nm) bend more than longer wavelengths (red, ~700nm), separating white light into a continuous spectrum.
Red bends least — Violet bends most