Superfact 105: The Sun is white, but the Sky steals its Blue is a poetic way of saying that the sun’s light is scattered by the atmosphere giving the Sun a yellowish tint as well as giving us our blue sky. From space the sun looks completely white.

Viewed from space the sun is entirely white. White light consists of a mix of all the colors of the rainbow. However, viewed from earth the sun has a yellow tint, which gets more pronounced, it even dips into orange, as the sun nears sunset. That does not happen in space as can be seen below in the one minute sunset timelapse video taken from the International Space Station.
On earth the sunset looks more like something in the picture below.

The sun is a so called yellow dwarf star, or a G-type main-sequence star. The term yellow dwarf is a bit of a misnomer, because they range in color from white, for more luminous G-types like the Sun, to only very slightly yellowish for less massive and less luminous G-type main-sequence stars. The sun emits all the colors of the rainbow simultaneously, but the most dominant color is green. However, this looks white to us.
When sunlight enters Earth’s atmosphere, tiny air molecules scatter shorter, blue wavelengths of light in all directions. This scattering is what makes the sky look blue. This is called Rayleigh scattering. Because much of the blue light is removed, the remaining wavelengths of light that reach your eyes combine to make the sun appear yellow. This is a super fact because it is a basic but surprising fact, and we know it is true.
Rayleigh Scattering
The blue color of the sky is caused by Rayleigh scattering of sunlight by the gases in the Earth’s atmosphere. The image below shows the degree to which Rayleigh scattering occurs at different wavelengths / frequencies of light. Blue has the shortest wavelength (highest frequency) for visible light and red the longest (lowest frequency). The curve shows that blue light scatters more than red light. It should be noted that UV light (not shown) scatter even more. The scattering curve shown is calculated for sunlight passing vertically through the atmosphere.
