It’s not yellow
Most photos of the sun depict it as being orange, red, yellow or a combination of the three. In reality, the sun is white. It appears yellow to us because of the blue light in the Earth’s atmosphere.