Here's why:
* The Sun emits all colors of the rainbow: The Sun emits a broad spectrum of light, including all the colors we see in a rainbow.
* Earth's atmosphere scatters blue light: When sunlight enters Earth's atmosphere, the blue wavelengths are scattered more effectively than other colors. This is why we see a blue sky.
* Red light is less scattered: As a result, red light is more likely to reach our eyes directly from the Sun, particularly at sunrise and sunset when the light has to travel through more of the atmosphere. This gives the sun a reddish appearance at these times.
* Space telescopes see the true color: Space telescopes, which are above the Earth's atmosphere, capture the full spectrum of the Sun's light, resulting in a white appearance.
Therefore, while we perceive the Sun as yellow or even orange-red from Earth, its true color is white.