Dispersion is the phenomenon where white light splits into its constituent colors (spectrum) when it passes through a prism or any medium with varying refractive indices for different wavelengths. This occurs because different colors (wavelengths) of light refract by different amounts; shorter wavelengths (violet) bend more than longer wavelengths (red).