A rainbow is created when sunlight reflects off of the water in the air, and the light that gets reflected off of those water droplets gets reflected as seven colours, aka ROYGBIV: red, orange, yellow, green, blue, indigo and violet. I also shows seven colours because those are all the colours of the light specturm.
Explanation:
A rainbow is a phenomenon that is formed by reflection , refraction and dispersion of light in water droplets resulting in a spectrum of light appearing in the sky