The sun is white-kind of. It depends on your interpretation of color, the way colors work, the way our eyes see and, just as importantly, the air we see through. The Sun would have to emit only green light for our eyes to perceive it as green.
This means the actual colour of the Sun is white. So, why does it generally look yellow? This is because the Earth's atmosphere scatters blue light more efficiently than red light. The Sun emits electromagnetic radiation over a wide range of wavelengths, including some our eyes can't see (like infrared and ultraviolet).
Its peak emission within the visible spectrum is green. But, the Sun is not green because it's the combination of wavelengths that determines color. Why the Sun Looks Yellow When It's Really Not.
What kind of light does the Sun emit? Sunlight spectrum above Earth's atmosphere as a function of wavelength. Public Domain Image, image source: Christopher S. Baird, data source: American Society for Testing and Materials Terrestrial Reference The Sun shines in many 'colors' of light.
The sun emits energy across the entire electromagnetic spectrum, including visible light. Within the visible light portion, the sun produces all colors of the rainbow, from red to violet. Rainbows are nature's proof that the Sun emits all the colors of visible light.
When sunlight hits raindrops, it splits into its component colors, creating the familiar arc of red, orange, yellow, green, blue, indigo, and violet. The color of the sun is dependent on a number of factors, such as the sun's surface temperature, Earth's atmosphere, and how the human eye sees color. The Sun in Space Viewed from space, such as aboard the International Space Station, the sun appears white.
This is because it emits light strongly across the visible spectrum (400-600 nm), from red to blue. Human eyes have three types of cone cells, each sensitive to different colors. When all cones are equally stimulated by light from the sun, our brain perceives the combined input as white.
Since we can see the range of seven colors of light in the outside world, it follows that the sun must be able to emit all of the seven colors of the rainbow. The sun emits all of these colors relatively evenly and so the overall effect is a white color.