Violet light has a shorter wavelength than red light, and light with shorter wavelengths is refracted more because it travels more slowly through the prism. This causes violet light to deviate more than red light.