It is white when seen from space. Here on Earth, the atmosphere disperses the blue part of the spectrum so that the blue sunlight comes to our eyes from all directions, making the sky blue. Without the blue light, the sun appears more yellow. So the color depends on your point of view :)