Dispersion occurs due to the different degrees of refraction experienced by different colours of light. Light of different colours may travel with the same speed in a vacuum, but they travel at different speeds in some refracting medium. The speed of violet light is relatively lower than that of red light.