ROYGBIV (Red, Orange, Yellow, Green, Blue, Indigo, Violet) are the seven colors of a rainbow from the outside to the inside.
These colors appear in this specific order because sunlight (white light) is dispersed, or bent, by water droplets in the atmosphere, causing it to separate into its different wavelengths.
This process is called refraction, where each color bends at a slightly different angle, with red bending the least and violet bending the most.