Which light behavior explains how white light spreads out into different colors?

The phenomenon behind the spreading out of white light into different colors is known as dispersion. Dispersed light occurs due to the varying wavelengths of the different colors within white light. When white light passes through a prism or a medium with varying refractive indices, each color or wavelength bends at a different angle, causing the light to spread out and separate into its constituent colors. This separation reveals the visible spectrum of colors, ranging from red to violet.