The real color of the sun is actually surprisingly white. We see it as yellow because of light from the sun passes through the earth's atmosphere that in changes in color, from white to the yellow we see here.
It is a common misconception that the Sun is yellow, or orange or even red. However, the Sun is essentially all colors mixed together, which appear to our eyes as white. This is easy to see in pictures taken from space.