It isn't. It emits every wavelength there is. The seven colors are a human invention.
white light is made up of all the colours so that means white light can absorb all the colours
the colours of the sun is red blue yellow green orange indago violet
The sky combines the sun with the moon and creates many beautiful colours
Red.
Rainbow is made from refraction & total internal reflection of light of the sun. The light of sun is white, which is combination of 7 colours. When rainbow occoures, white light is divide into all these colours. That's why rainbows have many colours.
Sunlight has seven colors because the atmosphere acts as a filter, it changes the color, for instance the setting sun, looks yellow or orange.
yellow
light from the sun is know as 'white light'. it is made up of all of the colours seen in the rainbow. when it rains, the light is split up into these different colours in the same way it would if you passed light through a glass prism. Therefore light splits up into its individual colours when it rains, and this is what a rainbow is.
it is the sun
The sun in actuality emits rays of different colours across the spectrum. However, our atmosphere filters and blocks out most of them, leaving only the yellow rays passing through.
The sun is not "attracted" to dark colours. Dark colours simply absorb energy more efficiently than light colours. Light colours reflect the energy away, so they don't heat up the way that dark colours do. To say that dark colours "attract" the sun is simply an incorrect way of saying it.
after rain there are tiny water droplets in the sky these droplets at as a prism and split the white light of Sun into seven colours making a rainbow