The Sun appears white when viewed from space outside Earth’s atmosphere.
Although sunlight is often drawn as yellow, the Sun emits a broad mixture of visible wavelengths. Combined, those colors are perceived as white, and the Sun’s visible spectrum is close to that of a blackbody at about 5,772 K. Its spectral radiance peaks near the green part of the spectrum, but that does not make the Sun look green.
Earth’s atmosphere changes the Sun’s apparent color. Rayleigh scattering removes more short-wavelength blue light from direct sunlight, while dust and aerosols can increase the effect. When the Sun is low, its light travels through a longer atmospheric path, making it appear yellow, orange, red, or occasionally other colors. At high altitude, with less atmosphere between the observer and the Sun, its white appearance is more evident.
“Yellow Sun” is therefore a familiar atmospheric and cultural impression rather than the best description of the Sun as seen from space. Direct solar viewing remains dangerous even outside the atmosphere without properly designed protection.