Colors of the rainbow

Red, orange, yellow, green, blue, indigo, violet: seven names for a band of light that has no edges.

Overview

The colors of the rainbow, in order, are red, orange, yellow, green, blue, indigo and violet.1 Red is on the outside of the bow and violet on the inside.

The list of seven comes from Isaac Newton, who split sunlight with a prism in the 1660s. The rainbow itself has no stripes. Its colors run into each other without a break, and where one ends and the next begins is a matter of naming, not of nature.1

Many people remember the order as ROY G. BIV, or with the sentence “Richard Of York Gave Battle In Vain”.2

In orderRed, orange, yellow, green, blue, indigo, violet
Memory aidROY G. BIV
Outer edgeRed
Inner edgeViolet
Counted byIsaac Newton, 17043
Where to lookOpposite the sun, about 42° from the point facing it1

The seven colors of the rainbow in order

ColorHex codeWavelength
1Red#FF0000620–750 nm
2Orange#FF7F00590–620 nm
3Yellow#FFFF00570–590 nm
4Green#00FF00495–570 nm
5Blue#0000FF450–495 nm
6Indigo#4B0082about 430–450 nm
7Violet#8F00FF380–450 nm

The order never changes, because it is the order of wavelength: red light has the longest waves the eye can see and violet the shortest. The bands in the table follow a standard handbook division of the spectrum, which has no indigo; the range given for indigo is Newton’s, as later measured, and it overlaps what the handbook calls violet.4

The hex codes are stand-ins. A screen cannot show the pure colors of a spectrum, so the codes give the strongest screen color of each hue.4 Real rainbows are also paler than a spectrum from a prism, because the bow of each color is smeared across its neighbors.1

Why seven? Newton and the musical scale

Newton did not begin with seven. In 1672 he divided the spectrum into the five colors above: red, yellow, green, blue and violet. He later added orange and indigo to make seven, to match the seven notes of the musical scale.1, 2 Behind the choice lay an old belief in a hidden link between colors, musical notes, the known bodies of the solar system and the days of the week.1

Newton himself said his eyes were not very sharp at telling colors apart, and the seven are a decision, not a discovery.1 The spectrum is a smooth run of hues. Count broadly and there are three or four colors; count finely and there are dozens.

How many bands people report also seems to depend on their language. Some researchers have argued that everyone sees the rainbow alike, but later studies suggest that speakers of languages with fewer color words pick out fewer bands.1

Is indigo really a color of the rainbow?

Indigo is the one most people cannot find. The likely reason is that the words have shifted. Scholars who have studied Newton’s notes conclude that what he called blue is what we would now call cyan, a greenish blue, and what he called indigo is our plain blue.1, 4

On that reading the seven colors are red, orange, yellow, green, cyan, blue and violet, as in the bands above, and many modern accounts of the spectrum list them that way or drop indigo and count six.1, 4

The best-known six-color rainbow is a flag. The rainbow flag first flown in San Francisco on June 25, 1978, designed by Gilbert Baker with other artists, had eight stripes; the version in use since 1979 has six: red, orange, yellow, green, blue and violet.5

How a rainbow gets its colors

  1. Sunlight enters a raindrop

    As it passes from air into water the light bends. Each color bends by a slightly different amount, violet most and red least, so the white light begins to fan out.

  2. It reflects off the back of the drop

    Part of the light bounces off the inside of the far wall and heads back toward the side it came from.

  3. It bends again on the way out

    Leaving the drop, the colors spread further. Red light comes out at about 42° to the sun’s rays and violet at about 40°.

  4. Millions of drops make the bow

    You see red from drops a little higher in the sky and violet from drops a little lower. All the drops at the right angle form a circle around the point opposite the sun, and the ground cuts it off into an arc.

That is why a rainbow always stands opposite the sun, why you cannot walk to its end, and why two people side by side see two slightly different bows, each made by different drops.1 From an aircraft, with nothing in the way, a rainbow can appear as a full circle.1

Sometimes a second, fainter bow appears about 10° outside the first. Its light has reflected twice inside each drop, which turns the order around: red is on the inside and violet on the outside. The darker strip of sky between the two bows is called Alexander’s band.1

  1. 4th century BC

    Aristotle gives the first serious account of the rainbow. For centuries, later theories are reactions to his.1

  2. 1268

    Roger Bacon writes that the top of a rainbow cannot stand more than 42° above the horizon.1

  3. 1307

    Theodoric of Freiberg explains both bows correctly: light is bent twice and reflected once inside each drop for the main bow, and reflected twice for the second. The Persian scholar Kamal al-Din al-Farisi reaches a similar account in the same years.1

  4. 1637

    René Descartes tests the idea with a water-filled glass sphere and works out the angles of both bows.1

  5. 1672

    Isaac Newton reports that white light is a mixture of colors that a prism bends by different amounts, which at last explains the colors.1

  6. 1704

    Newton’s Opticks lists the seven colors still taught today.3

Colors that are not in the rainbow

Magenta#FF00FFPink#FF69B4

A rainbow shows every color that a single wavelength of light can make, and no others. Magenta, pink and purple are missing because they need red and blue light together, from the two opposite ends of the spectrum.6 Brown is missing because it is a dark orange, and a color can only look dark next to something brighter. White, gray and black are not there either: white is all the colors together, which is what a rainbow takes apart.

For how those colors are made, see what colors make purple and what colors make brown.

Questions

What are the 7 colors of the rainbow in order?

Red, orange, yellow, green, blue, indigo and violet, from the outer edge of the bow to the inner edge.

What does ROYGBIV stand for?

Red, orange, yellow, green, blue, indigo, violet: the first letters of the seven rainbow colors in order. It is often written as a name, Roy G. Biv.

Why are there 7 colors in the rainbow?

Because Isaac Newton chose seven. He first named five and later added orange and indigo, to match the seven notes of the musical scale. The rainbow itself is a smooth band with no fixed number of colors.

Which color is at the top of a rainbow?

Red is on the outer, upper edge and violet on the inner, lower edge. In a second, fainter bow outside the first, the order is reversed.

Is pink in the rainbow?

No. Pink and magenta are mixtures of red and blue light, from opposite ends of the spectrum, so no single band of the rainbow has that color.

What is the difference between indigo and violet?

Indigo is a deep blue that leans toward purple; violet lies beyond it, at the very end of the spectrum, and is closer to purple. Many modern lists leave indigo out and go straight from blue to violet.

How many colors are really in a rainbow?

As many as you care to name. The spectrum is continuous, so seven is a convention. Counts of six, with indigo left out, are just as valid.

What are the hex codes of the rainbow colors?

Common ones are #FF0000 (red), #FF7F00 (orange), #FFFF00 (yellow), #00FF00 (green), #0000FF (blue), #4B0082 (indigo) and #8F00FF (violet). They are screen approximations; no screen can show true spectrum colors.

Keep reading

Sources (6)
  1. Wikipedia, “Rainbow”, citing Lee and Fraser’s The Rainbow Bridge: Rainbows in Art, Myth, and Science (2001), Gage’s Color and Meaning (1994) and McLaren’s “Newton’s indigo” (1985).
  2. Wikipedia, “ROYGBIV”, citing Newton’s Opticks (1704) and Hutchison, “Music for Measure: On the 300th Anniversary of Newton’s Opticks”.
  3. Newton, I. (1704). Opticks, Book I, Part II. Project Gutenberg.
  4. Wikipedia, “Spectral color”, table of spectral color classifications (Newton as measured by McLaren, 1985; CRC Handbook of Fundamental Spectroscopic Correlation Charts, 2006), and on spectral colors lying outside sRGB.
  5. Wikipedia, “Rainbow flag (LGBTQ)”.
  6. Wikipedia, “Purple”, on purple as a non-spectral color.