Rainbows are among nature’s most captivating displays, a fleeting spectrum that appears after a storm or beneath a garden sprinkler. The question of how do the colors in the rainbow go is rooted in the physics of light, specifically the process of refraction and dispersion through water droplets. To understand the sequence, we must look at the fundamental properties of white light, which is composed of a continuous range of wavelengths that our eyes interpret as color. When sunlight encounters a prism or a rain cloud, it is bent, or refracted, separating into its constituent parts.

The Science of Dispersion

The mechanism behind the order of the colors is dispersion, a phenomenon where different wavelengths of light travel at different speeds through a medium. In the case of a rainbow, that medium is water. As light enters a spherical water droplet, it slows down and bends towards the normal line; the degree of this bend depends on the wavelength. Shorter wavelengths, such as violet and blue, slow down more and bend at a sharper angle than longer wavelengths like red. This angular separation is the first step in arranging the colors in a specific sequence.
Refraction and Reflection

After the initial refraction, the light continues through the droplet and strikes the inner back wall. Most of the light is reflected off this inner surface in a process akin to a mirror, though a small portion is refracted again as it exits the droplet. It is this double refraction—entering and exiting the sphere—that creates the vivid, circular arc we see in the sky. The angle at which the light exits is specific to each wavelength, ensuring the red light is always on the outer edge of the band, while blue remains on the inner edge.
The Traditional Sequence

When observing a primary rainbow, the colors always appear in the same order due to the consistent physics of refraction. The sequence, memorized by generations through mnemonic devices, progresses from the longest wavelength to the shortest visible wavelengths. Moving from the outside edge of the arc to the inside, the colors align in a specific pattern that is universal, whether viewed over the ocean or from a kitchen faucet.
Color Order Breakdown
The standard sequence of the spectral colors is as follows: Red, Orange, Yellow, Green, Blue, Indigo, and Violet. This progression is not arbitrary; it mirrors the gradual change in energy and wavelength across the visible light spectrum. Red, being the least refracted, sits at the top, while violet, being the most refracted, sits at the bottom of the visible band in a primary rainbow. This arrangement is a direct result of the index of refraction of water varying slightly for each color.

ROYGBIV Explained
The acronym ROYGBIV serves as a helpful tool for recalling the progression of the palette. Each letter corresponds to a distinct band of color that blends seamlessly into the next, creating the smooth gradient that delights the eye. Understanding this order helps clarify the answer to how do the colors in the rainbow go, transforming a beautiful visual effect into a predictable scientific outcome. The consistency of this sequence allows for reliable identification and study of atmospheric optics.
Variations and Secondary Rainbows

While the primary rainbow follows the ROYGBIV sequence, atmospheric conditions can produce variations. A secondary rainbow, formed by two reflections inside the water droplet, appears fainter and outside the primary arc. In this reversed phenomenon, the color order is inverted, with violet on the outside and red on the inside. This provides a clear visual confirmation that the angle of reflection dictates the positioning of the wavelengths, offering a dynamic illustration of the underlying principles.
Cultural and Perceptual Notes




















It is worth noting that the division of the spectrum into seven distinct colors is largely a cultural construct. Physically, the transition from red to green is a continuous gradient without hard boundaries. Some individuals with tetrachromacy may perceive a broader range of color within these bands. Nevertheless, the functional sequence remains constant for the human eye, answering the core question of how do the colors in the rainbow go with a precision dictated by the laws of physics rather than human perception. This universality makes the rainbow a timeless symbol of natural harmony.