The vibrant spectacle of a rainbow is a familiar sight, yet the science behind its colors is often overlooked. Understanding what causes the different colors in a rainbow can be traced back to the fascinating interplay between light and water.

Rainbows are a product of refraction, reflection, and dispersion of light. When sunlight enters a raindrop, it slows down and bends, or refracts. This refraction causes the light to change direction, and as it exits the raindrop, it is reflected back into the raindrop. The light then undergoes another refraction as it exits the raindrop for the second time, creating the colorful display we see as a rainbow.

Light and Its Colors
Light is composed of different wavelengths, each corresponding to a different color. The visible light spectrum ranges from red to violet, with each color having a unique wavelength. When light passes through a medium like a raindrop, it is dispersed, or separated into its constituent colors.

This dispersion is what gives a rainbow its characteristic colors. The different colors of light are refracted at slightly different angles, with red light being refracted the least and violet light being refracted the most. This is why a rainbow appears in the order of the visible light spectrum: red, orange, yellow, green, blue, indigo, and violet.
Red: The Longest Wavelength

Red light has the longest wavelength among the visible light spectrum. When sunlight enters a raindrop, red light is refracted the least, meaning it changes direction the least. This is why red appears on the outer side of a rainbow.
An interesting fact about red in rainbows is that it's often not as vibrant as the other colors. This is because red light is scattered less than the other colors, and it's also the first color that our eyes can no longer distinguish from the background, making it appear fainter.
Violet: The Shortest Wavelength

Violet light has the shortest wavelength among the visible light spectrum. When sunlight enters a raindrop, violet light is refracted the most, changing direction the most. This is why violet appears on the inner side of a rainbow.
Violet is also the hardest color to see in a rainbow due to its short wavelength and low intensity. In fact, many people struggle to distinguish between blue and violet in a rainbow, often leading to the misconception that there are only six colors in a rainbow.
The Rainbow's Arc

The shape of a rainbow is not a straight line, but an arc with a central angle of 42 degrees. This angle is a result of the physics behind the refraction and reflection of light in raindrops.
When sunlight enters a raindrop, it is refracted at an angle of 40 degrees. After being reflected inside the raindrop, the light exits at an angle of 42 degrees. This is why we see a rainbow as an arc with a central angle of 42 degrees, rather than a full circle.




















Primary and Secondary Rainbows
Besides the primary rainbow, there's also a secondary rainbow that appears above it. The secondary rainbow is formed when sunlight undergoes two internal reflections in a raindrop before exiting. This double reflection causes the colors to be reversed, with violet on the outer side and red on the inner side.
Secondary rainbows are fainter than primary rainbows because some of the light is lost during the additional reflection. They also appear at a higher altitude, typically around 53 degrees above the horizon, compared to the primary rainbow's 42 degrees.
Understanding the science behind rainbows can deepen our appreciation for these natural phenomena. The next time you see a rainbow, remember the fascinating dance of light and water that creates this beautiful spectacle. And who knows, you might even spot a secondary rainbow!