Whiter skin evolved when humans migrated from Africa to regions with less sun, in order to get more vitamin D.
Whiter skin evolved when humans migrated from Africa to regions with less sun, in order to get more vitamin D.
Planet was colder, and around equator you actually have quite habitable places even now, deserts are further from equator. But you get tons of light whole year in very stable pattern.
We had fur at one point, and our still-furred cousins have pink skin, so our ancestors probably did as well.
It's generally believed to be the case that dark skin evolved with hairlessness, and was lost by some branches of the tree during the glacial period.
Here's a popular-press citation for the consensus that our furred common ancestor was pink skinned: https://www.discovermagazine.com/planet-earth/why-did-darker...
The key points are both dark and pale skin are evolutionary traits once we lost hair. If you sweat you probably want light skin under fur.