Most of the heat loss from the human body, in warm weather, is by conduction, convection and evaporation (through sweating). In contrast, in the sun, most heat energy absorbed by the body is transferred by radiation. Therefore wearing whites in the sun reduces the amount of heat absorbed, whilst not affecting significantly the amount lost, thus keeping you cool. (The opposite is true of dark or black clothing).