Our Sun appears yellow to us because of the atmosphere.
Photons in the higher end of the spectrum – blue, indigo and violet – are more likely to be scattered away, while the lower end of the spectrum – red, orange and yellow – are less easily scattered.