The refractive index of the medium is maximum for violet light and minimum for red light. Therefore, when white light enters a prism, it disperses into seven constituent colours, and violet light shows the maximum deviation.