The formation of a rainbow is due to the refraction, dispersion, and reflection of sunlight by water droplets in the atmosphere. Sunlight entering the droplets is refracted, split into its component colors, internally reflected, and then refracted again as it ...