Why do we perceive the sun as yellow? I understand that its colour
arises from the mixture of wavelengths in sunlight. But as sunlight has
been the main source of illumination throughout evolution - the
background light to everything on the planet up to the invention of
electric light - it gives us our default colour for everything. So why
don't we consider it to be the neutral colour - in other words, white?
But I must add that to me the sun does look white rather than yellow.
Anyway, there is very little selective pressure on us to balance our colour perceptions precisely to match sunlight, which is just as well; the light we see is by no means constant. Instead we keep adjusting our perception of colour to match the light we see. A good example is that people who have been living under several metres of sea water for a couple of weeks come up red-starved; seawater is less transparent to red light than to blue and yellow. For some time after they surface, everything looks disconcertingly red to them. However, their eyes soon adjust to the light balance at the surface, and the "excess" subjective red soon disappears.
We have no definite standard to which our eyes can adjust, so our dynamic adjustment causes some very confusing optical illusions.
Morning light differs from full daylight, but it takes a sensitive and alert eye to see that. A patch of sky seen out of context with nothing to compare, looks white rather than blue. stripes of uniform colour next to stripes of different colours, each stripe of a colour that is constant across its width, seem to have borders of a (usually) greater depth. And so on.
And of course, if you have been locked in a blue room for a few days, sunlight will look decidedly yellow when you emerge, even if you are not very colour-sensitive.
To me the "neutral" white is the daylight of a cloudy but not dark day.
Sunlight is decidedly more yellow than that, evening light - more blue.
Sunlight is not what we have every day all day, it is something special, "golden", precious. Maybe Jon sees it as white because South Africa is generally more sunny than the parts of Europe where I usually live and travel.
Well Tx you may have a point. I had actually thought of the difference in the intensity of sunlight possibly affecting the subjective impression. Certainly I have repeatedly seen visitors from Europe toasting themselves in our sun when locals were seeking shade. Often they are dismissive of warnings; some of them even lie in the sun on cooking foil and land in hospital!
Oh, I've thought of a much better answer that applies to sunny countries!
The sky is blue, so direct sunlight is more yellow than dispersed sky-light. So either the sunlight looks yellow or the shadows blue or both, especially in the evening when even more blue is filtered out of the sunlight and dispersed over the whole sky.
Do shadows look blue to you Jon, as sunlight looks white?
That answer is so perceptive that I feel quite embarrassed at not having thought of it.
In fact, this might well be a delusion, but I have a very faint sense of having read something of the kind somewhere, sometime. But I really am not sure. Doubly silly me...
Disappointingly, I am not particularly sensitive to subtleties of colouration, but I certainly have seen paintings in which shadows were given colours, and generally blue at that. So it certainly seems that some people see them that way.
Unfortunately again, it is so common for artists to play free and easy with their colours that this does not prove much!
That we perceive sunlight as yellow because of the preferential scattering of shorter wavelengths has been covered by other answers.
In the context of this question I would add that staring directly at the sun is not, fortunately, something we do a great deal of. When we consider the more normal case the objects we view on the ground are illuminated not only by direct sunlight but also by the scattered shorter wavelengths resulting in incident light which more closely approximates white light.
Of course, as stated elsewhere, it has not been established that we necessarily should perceive the most common illuminating light as being "white".