Rainbows are an optical effect, caused when water functions as a prism for the sunlight to deconstruct the waves of light into visible color.
If you think about it, the colors are always there, only we don't see them.
We just need a little help with that.