White light is made up of the colors of the visible spectrum. When white light hits water droplets in the air, it is refracted and separated into different colors to form a rainbow. The water droplets act as prisms to refract the light. Rainbows occur when sunlight passes through water droplets in the air. Different materials can transmit light directly, scatter light as it passes through, or allow some light to pass through blurred.