When it rains, the colors that make up white light separate because they bend at different angles when they pass through water. The result is the full spectrum of colors the human eye can see, as well as some that it cannot; at the outermost edges of a rainbow lie ultraviolet and infrared light.