The color of the sun is white. The sun emits all colors of the rainbow more or less evenly and in physics, we call this combination white. That is ...
The sun is not yellow or orange as we see in books and movies. It emits all the colours in the visible spectrum (also in other spectrums as well) making it white!
“Light is perceived by the human visual system as white when the incoming light to the eye stimulates all three types of color sensitive cone cells in the eye in roughly equal amounts.”