the color of skin is mainly because of pigmentation and location. Africa does not have snow nor winter.... thus dark-skinned in order to protect the skin from sun.
There are places where the climate is more unforgiving than Africa and the native inhabitants have lighter skin (the Middle East).