Visible light is a portion of the electromagnetic spectrum, that includes wavelengths approximately from 380 nm to 750 nm.
It is the only part of the electromagnetic spectrum that the human eye can see. Depending on the wavelength of the light in this region, we perceive the light as a different color.
Therefore, each color is associated to a different range of wavelength, as follows:
Because each color is refracted differently, each bends at a different angle, resulting in a fanning out and separation of white light into the colors of the spectrum.