Sun is essentially all colors mixed together, which appear to our eyes as white.
What is the Actual Color of The Sun? » Science ABC
"The light emitted by the Sun is actually white, which is a composite of all the visible frequencies of light... The reason that the Sun looks yellow to us is because of Earth’s atmosphere. The earth’s atmosphere scatters away light in the blue, indigo and violet wavelength region, while higher wavelength colors, like red, orange and yellow are less easily scattered. These remaining wavelengths are what we see, which is why the Sun appears yellow."