A rainbow is an optical phenomenon caused by refraction, internal reflection and dispersion of light in water droplets resulting in a continuous spectrum of light appearing in the sky.[1] The rainbow takes the form of a multicoloured circular arc.[2] Rainbows caused by sunlight always appear in the section of sky directly opposite the Sun. Rainbows can be caused by many forms of airborne water. These include not only rain, but also mist, spray, and airborne dew.
Rainbows can be full circles. However, the observer normally sees only an arc formed by illuminated droplets above the ground,[3] and centered on a line from the Sun to the observer's eye.
In a primary rainbow, the arc shows red on the outer part and violet on the inner side. This rainbow is caused by light being refracted when entering a droplet of water, then reflected inside on the back of the droplet and refracted again when leaving it.
In a double rainbow, a second arc is seen outside the primary arc, and has the order of its colours reversed, with red on the inner side of the arc. This is caused by the light being reflected twice on the inside of the droplet before leaving it.
Visibility

Rainbows can be observed whenever there are water drops in the air and sunlight shining from behind the observer at a low altitude angle. Because of this, rainbows are usually seen in the western sky during the morning and in the eastern sky during the early evening. The most spectacular rainbow displays happen when half the sky is still dark with raining clouds and the observer is at a spot with clear sky in the direction of the Sun. The result is a luminous rainbow that contrasts with the darkened background. During such good visibility conditions, the larger but fainter secondary rainbow is often visible. It appears about 10° outside of the primary rainbow, with inverse order of colours.
The rainbow effect is also commonly seen near waterfalls or fountains. In addition, the effect can be artificially created by dispersing water droplets into the air during a sunny day. Rarely, a moonbow, lunar rainbow or nighttime rainbow, can be seen on strongly moonlit nights. As human visual perception for colour is poor in low light, moonbows are often perceived to be white.[4]
It is difficult to photograph the complete semicircle of a rainbow in one frame, as this would require an angle of view of 84°. For a 35 mm camera, a wide-angle lens with a focal length of 19 mm or less would be required. Now that software for stitching several images into a panorama is available, images of the entire arc and even secondary arcs can be created fairly easily from a series of overlapping frames.
From above the Earth such as in an aeroplane, it is sometimes possible to see a rainbow as a full circle. This phenomenon can be confused with the glory phenomenon, but a glory is usually much smaller, covering only 5–20°.
The sky inside a primary rainbow is brighter than the sky outside of the bow. This is because each raindrop is a sphere and it scatters light over an entire circular disc in the sky. The radius of the disc depends on the wavelength of light, with red light being scattered over a larger angle than blue light. Over most of the disc, scattered light at all wavelengths overlaps, resulting in white light which brightens the sky. At the edge, the wavelength dependence of the scattering gives rise to the rainbow.[5]
The light of a primary rainbow arc is 96% polarised tangential to the arc.[6] The light of the second arc is 90% polarised.
Number of colours in a spectrum or a rainbow
For colours seen by the human eye, the most commonly cited and remembered sequence is Isaac Newton's sevenfold red, orange, yellow, green, blue, indigo and violet,[7][a] remembered by the mnemonic Richard Of York Gave Battle In Vain, or as the name of a fictional person (Roy G. Biv). The initialism is sometimes referred to in reverse order, as VIBGYOR. More modernly, the rainbow is often divided into red, orange, yellow, green, cyan, blue and violet.[9] The apparent discreteness of main colours is an artefact of human perception and the exact number of main colours is a somewhat arbitrary choice.
Newton, who admitted his eyes were not very critical in distinguishing colours,[10] originally (1672) divided the spectrum into five main colours: red, yellow, green, blue and violet. Later he included orange and indigo, giving seven main colours by analogy to the number of notes in a musical scale.[7][b][11] Newton chose to divide the visible spectrum into seven colours out of a belief derived from the beliefs of the ancient Greek sophists, who thought there was a connection between the colours, the musical notes, the known objects in the Solar System, and the days of the week.[12][13] Scholars have noted that what Newton regarded at the time as "blue" would today be regarded as cyan, what Newton called "indigo" would today be called azure, and what Newton considered "violet" would today be considered blue.[8][9][14]
Newton's first colours | Red | Yellow | Green | Blue | Violet | ||
Newton's later colours | Red | Orange | Yellow | Green | Blue | Indigo | Violet |
Modern interpretation | Red | Orange | Yellow | Green | Cyan | Azure | Blue |
The colour pattern of a rainbow is different from a spectrum, and the colours are less saturated. There is spectral smearing in a rainbow since, for any particular wavelength, there is a distribution of exit angles, rather than a single unvarying angle.[15] In addition, a rainbow is a blurred version of the bow obtained from a point source, because the disk diameter of the sun (0.533°) cannot be neglected compared to the width of a rainbow (2.36°). Further red of the first supplementary rainbow overlaps the violet of the primary rainbow, so rather than the final colour being a variant of spectral violet, it is actually a purple. The number of colour bands of a rainbow may therefore be different from the number of bands in a spectrum, especially if the droplets are particularly large or small. Therefore, the number of colours of a rainbow is variable. If, however, the word rainbow is used inaccurately to mean spectrum, it is the number of main colours in the spectrum.
Moreover, rainbows have bands beyond red and violet in the respective near infrared and ultraviolet regions, however, these bands are not visible to humans. Only near frequencies of these regions to the visible spectrum are included in rainbows, since water and air become increasingly opaque to these frequencies, scattering the light. The UV band is sometimes visible to cameras using black and white film.[16]
The question of whether everyone sees seven colours in a rainbow is related to the idea of linguistic relativity. Suggestions have been made that there is universality in the way that a rainbow is perceived.[17][18] However, more recent research suggests that the number of distinct colours observed and what these are called depend on the language that one uses, with people whose language has fewer colour words seeing fewer discrete colour bands.[19]
Explanation
When sunlight encounters a raindrop, part of the light is reflected and the rest enters the raindrop. The light is refracted at the surface of the raindrop. When this light hits the back of the raindrop, some of it is reflected off the back. When the internally reflected light reaches the surface again, once more some is internally reflected and some is refracted as it exits the drop. (The light that reflects off the drop, exits from the back, or continues to bounce around inside the drop after the second encounter with the surface, is not relevant to the formation of the primary rainbow.) The overall effect is that part of the incoming light is reflected back over the range of 0° to 42°, with the most intense light at 42°.[20] This angle is independent of the size of the drop, but does depend on its refractive index. Seawater has a higher refractive index than rain water, so the radius of a "rainbow" in sea spray is smaller than that of a true rainbow. This is visible to the naked eye by a misalignment of these bows.[21]
The reason the returning light is most intense at about 42° is that this is a turning point – light hitting the outermost ring of the drop gets returned at less than 42°, as does the light hitting the drop nearer to its centre. There is a circular band of light that all gets returned right around 42°. If the Sun were a laser emitting parallel, monochromatic rays, then the luminance (brightness) of the bow would tend toward infinity at this angle if interference effects are ignored . But since the Sun's luminance is finite and its rays are not all parallel (it covers about half a degree of the sky) the luminance does not go to infinity. Furthermore, the amount by which light is refracted depends upon its wavelength, and hence its colour. This effect is called dispersion. Blue light (shorter wavelength) is refracted at a greater angle than red light, but due to the reflection of light rays from the back of the droplet, the blue light emerges from the droplet at a smaller angle to the original incident white light ray than the red light. Due to this angle, blue is seen on the inside of the arc of the primary rainbow, and red on the outside. The result of this is not only to give different colours to different parts of the rainbow, but also to diminish the brightness. (A "rainbow" formed by droplets of a liquid with no dispersion would be white, but brighter than a normal rainbow.)
The light at the back of the raindrop does not undergo total internal reflection, and most of the light emerges from the back. However, light coming out the back of the raindrop does not create a rainbow between the observer and the Sun because spectra emitted from the back of the raindrop do not have a maximum of intensity, as the other visible rainbows do, and thus the colours blend together rather than forming a rainbow.[22]
A rainbow does not exist at one particular location. Many rainbows exist; however, only one can be seen depending on the particular observer's viewpoint as droplets of light illuminated by the sun. All raindrops refract and reflect the sunlight in the same way, but only the light from some raindrops reaches the observer's eye. This light is what constitutes the rainbow for that observer. The whole system composed by the Sun's rays, the observer's head, and the (spherical) water drops has an axial symmetry around the axis through the observer's head and parallel to the Sun's rays. The rainbow is curved because the set of all the raindrops that have the right angle between the observer, the drop, and the Sun, lie on a cone pointing at the sun with the observer at the tip. The base of the cone forms a circle at an angle of 40–42° to the line between the observer's head and their shadow but 50% or more of the circle is below the horizon, unless the observer is sufficiently far above the earth's surface to see it all, for example in an aeroplane (see below).[23][24] Alternatively, an observer with the right vantage point may see the full circle in a fountain or waterfall spray.[25] Conversely, at lower latitudes near midday (specifically, when the sun's elevation exceeds 42 degrees) a rainbow will not be visible against the sky.