Why is the colour of sunlight yellow?
Color of Sunlight as seen on Earth's surface during day is yellow due to Rayleigh Scattering.
Our Sun is actually white (mixture of all wavelengths of visible spectrum) if we see it from outer space or high-altitude airplanes. Our atmosphere scatters shorter to bigger wavelengths color from sunlight when the white light travels through it. During day, it scatters violet and blue colors leaving yellowish sunlight (the reason why sky is blue and sunlight is yellow). During morning and evening, the sun appears reddish because light rays needs to travel longer distance in atmosphere which causes scattering of yellow light too.