When white light passes through a prism, it splits into its constituent colours due to dispersion. The amount of bending (deviation) of light by a prism depends on the refractive index of the prism material for that specific colour. According to Cauchy's formula and experimental observations, the refractive index of a material decreases as the wavelength of light increases. Violet light has the shortest wavelength among the visible colours, while red light has the longest wavelength. Therefore, the refractive index of glass is highest for violet light and lowest for red light. A higher refractive index leads to a greater deviation (bending).