The sun appears to be yellow because of its surface temperature. The sun's surface temperature is around 5,500 degrees Celsius, which causes it to emit a yellowish-white light. However, it is important to note that the sun can appear to be different colors depending on atmospheric conditions, such as during sunrise or sunset when it may appear more orange or red.