Skin Color has everything to do with hair apparently.
People were light skin under that hair.
Our earliest human ancestors in Africa probably had light skin (just as chimpanzees do underneath their fur). As these ancestors moved from forests to the open savannah and evolved reduced hair covering, natural selection favored gene variants for darker skin and protection from sun damage — but this was not a uniform process purging all “light” gene versions out of existence. This ancestral population still had a lot of
genetic variation for a range of skin tones, even if the ones producing darker skin were more common. Then, as modern human populations split off from one another and fanned out over the globe, different gene versions rose to high frequency in different populations according to the balance between selection favoring UV protection and selection favoring vitamin D production. Several different groups evolved lighter skin as ancient gene versions for this trait were favored (e.g., in Europeans) — and as we’ve seen, at least one of these gene versions made it
back to Africa where it became common among the KhoeSan. The twists and turns of this story illustrate, not a grand plan towards a specified goal, but a dynamic process, responding to the vagaries of history and migration, enabling so many diverse human populations to thrive in their unique environments.
evolution.berkeley.edu
Also
Recent genomic studies show that the ancestral alleles of many predicted functional pigmentation variants in
Africa are associated with lighter skin, suggesting our human ancestors may have had light or moderately pigmented skin… Combined with the fact that our closest evolutionary relatives, chimpanzees, have light skin, these results suggest that dark skin may be a derived trait in the Homo genus.
Skin color is a highly heritable human trait, and global variation in skin pigmentation has been shaped by natural selection, migration and admixture. Ethnically diverse African populations harbor extremely high levels of genetic and phenotypic ...
pmc.ncbi.nlm.nih.gov