Why do people have different color skin?

Skin color—which ranges from light pink to dark brown—is determined by the amount and type of the pigment melanin there is in the skin. Melanin comes in two types: phaeomelanin (red to yellow) and eumelanin (dark brown to black).

Both amount and type are determined by four to six genes. One copy of each of those genes is inherited from your father and one from your mother. Each gene comes in several coding sequences, which results in a variety of skin colors around the world.