Sunlight, or white light, contains a rainbow. When it passes through a prism, it gets refracted into the visible spectrum, which consists of the colours of the rainbow: red, orange, yellow, green, blue, indigo, and violet, which can be remembered by the acronym VIBGYOR. The electromagnetic radiation in sunlight has a variety of wavelengths. This includes visible light, which ranges from red to violet, infrared radiation, ultraviolet radiation, and small amounts of other types of radiation. When sunlight passes through a prism, it spreads out into a spectrum of colors. This demonstrates that sunlight is a mixture of different types of electromagnetic radiation.