How do we get rainbows?
The electromagnetic spectrum is made of light with many different wavelengths consisting of a band of colors that include red, orange, yellow, green, blue, indigo and violet. White light is how our eyes perceive all the colors of the rainbow mixed together. Sunlight appears white. When sunlight hits a rain droplet, some of the light is reflected. They are reflected at a different angles separating the spectrum and producing a rainbow.