If you look at all the incoming photons, our star actually sends most of the photons in the green part of the spectrum. Our Sun appears yellow to us because of the atmosphere.
High-spectrum photons — cyan, blue, and violet — can quickly scatter than lower-spectrum photons — red, orange, and yellow. When the sun is low above the horizon, you see it is distorted due to the Earth’s atmosphere, the blue photons scatter and the sun looks red. When there is smoke and pollution in the air, this enhances the effect and the sun will look even redder. If the sun is high in the sky, where it encounters the least amount of atmospheric interference, it will be more blue.
Our Sun has a temperature of almost 5800 Kelvin, and when viewed outside our atmosphere, it appears white.