Refraction occurs at each surface, and as the degree of bending depends on wavelength, the light is dispersed into a spectrum. Red is bent less than blue
Didn't find the answer you were looking for?