[URL unfurl="true"]https://askanastronomer.org/stars/faq/2015/11/06/is-the-sun-yellow-or-white/[/URL]

[QUOTE]
The Sun emits a lot of energy in the visible range. In wavelength scale it is from 390 nm to 700 nm, and when you translate it to colors, you get all colors from [URL='https://askanastronomer.org/have-astronomers-ever-observed-a-violet-shift-like-they-have-blue-shifts-and-red-shifts/']violet to red[/URL], just as we see them in the rainbow. When you mix all those [URL='https://askanastronomer.org/what-is-the-color-of-the-sun/']colors together you get white, and that is why white is the true color of the Sun[/URL]. Check out photos of the Sun taken by astronauts (with no filters). The Sun appears white on them!
[/QUOTE]

This would make sense because the stars are white, and the sun is a star.