The traditional rainbow consists of seven colors, commonly remembered by the acronym ROYGBIV:
This division originates from Isaac Newton's optics experiments, though the spectrum is continuous. Indigo is often considered a transitional hue between blue and violet.