Rainbows are an arc of color that appears in the sky after certain weather conditions. Water in the air acts as a prism, splitting sunlight into its component colors and reflecting those colors back to the viewer. Humans perceive seven distinct colors in every rainbow, although sometimes it is hard to see all of the colors at once when viewing an actual rainbow. The colors always appear in the same order.