Light can be separated into its constituent colors using a prism. When white light passes through a prism, it undergoes dispersion, where different wavelengths (colors) of light bend by different amounts, creating a spectrum of colors from red to violet.