The Sun as seen from outside the Earth’s atmosphere appears to be white.
When we see it from the surface of the Earth it appears a whitish-yellow color.
We see that color because that the average of all the colors left after some of the blue/violet colors have been scattered out.
Visible Light – R, O, Y, G, B, V => we see the average which is white.