In the above case, when white light enters the glass prism, it undergoes refraction. The different colors (wavelengths) of light travel at different speeds in the prism, causing them to spread out or disperse. This results in the formation of a spectrum of white light, displaying the colors of the visible spectrum: red, orange, yellow, green, blue, indigo, and violet.