When white light passes through a prism, it undergoes dispersion, splitting into its constituent colors. The deviation of light depends on its wavelength; longer wavelengths deviate less. Among visible colors, red has the longest wavelength and, therefore, the least deviation.