* The Sun emits all colors of the rainbow: The Sun produces a full spectrum of light, including all the colors we see in a rainbow: red, orange, yellow, green, blue, indigo, and violet.
* Our eyes see it as white: Our eyes perceive the combination of all these colors as white light.
* Sunlight can be separated: We can see the different colors of sunlight by passing it through a prism. This separates the light based on its wavelength, revealing the full rainbow.
While the Sun appears yellow to us, that's mainly due to the Earth's atmosphere scattering blue light. If we were to observe the Sun from space, it would appear white.