A rainbow typically has seven colors: red, orange, yellow, green, blue, indigo, and violet. This sequence is often remembered by the mnemonic "ROYGBIV." The division into these seven colors originates from Isaac Newton, who chose seven colors by analogy with the musical scale, although the exact number of distinct colors can be somewhat arbitrary and varies due to human perception and the continuous nature of the color spectrum.
