The colors of the rainbow always show up in the same order: red, orange, yellow, green, blue, indigo and violet. It’s organized by wavelength. Red, with the longest wavelength, is on the outside, while violet, with the shortest, is on the inside.
The seven colors of a rainbow can be remembered with the mnemonic “ROYGBIV,” or Roy G. Biv, which stands for Red, Orange, Yellow, Green, Blue, Indigo and Violet. These colors are called spectral colors.
This sequence corresponds to the visible spectrum of light that we can see with the naked eye. Each color transitions smoothly into the next, creating the familiar gradient.