Rainbow is Formed Due to
Refraction and reflection of Sunlight by water droplets
Rainbows appear in seven colors because water droplets break sunlight into the seven colours of the spectrum. You get the same result when sunlight passes through a prism. The water droplets in the atmosphere act as prisms, though the traces of light are very complex.
When light meets a water droplet, It is refracted at the boundary of air and water and enters the droplet, where the light is dispersed into the seven colors. The rainbow effect occurs because the light is then reflected inside the droplet and finally refracted out again into the air.
You know that rainbow is a multi-colored arc that forms in the sky. The colors of the rainbow are Red, Orange, Yellow, Green, Blue, Indigo and Violet. The Rainbow spectrum helps us understand the physical nature of the Universe, everyone loves rainbow.