The Sun is a white star. It appears yellow in the sky because the blue part of the visible spectrum is scattered away by the atmosphere. This is also the reason why we see a blue sky.