Here's why:
* The sun emits all colors of the rainbow. This is because it's a giant ball of hot gas that produces light through nuclear fusion.
* Our atmosphere scatters blue light more effectively. This is why the sky appears blue on Earth.
* When you see the sun from space, there's no atmosphere to scatter blue light. So, you see the sun's true color – white, which is a combination of all the colors of the rainbow.
While we perceive the sun as yellow or orange from Earth, that's just a result of our atmosphere. In the vast emptiness of space, the sun shines in its true, dazzling white.