A) Different wavelengths
As the full spectrum of visible light travels through a prism, the wavelengths separate into the colors of the rainbow because each color is a different wavelength. Violet has the shortest wavelength, at around 380 nanometers, and red has the longest wavelength, at around 700 nanometers.
(Science.NASA.org)