Skin color is determined primarily by melanin, a pigment produced by specialized cells in your skin. The amount of melanin, the type of melanin, and how it’s distributed throughout your skin cells all combine to create the wide spectrum of human skin tones. But melanin isn’t the only contributor. Blood flow, dietary pigments, and the interplay of dozens of genes also shape what you see when you look at your skin.
The Two Types of Melanin
Your skin produces two primary forms of melanin: eumelanin and pheomelanin. Eumelanin comes in brown and black varieties and is the dominant pigment in darker skin tones. Pheomelanin is a reddish-yellow pigment. The ratio between these two pigments is what creates the enormous range of human skin colors, from deep brown to pale pink.
Skin with mostly eumelanin appears brown, and the more eumelanin present, the darker the skin. Skin with mostly pheomelanin appears a light pinkish color. Everyone’s skin contains both types in varying proportions. People with red hair and very fair, freckled skin tend to produce more pheomelanin relative to eumelanin, while people with dark brown or black skin produce far more eumelanin.
How Your Skin Builds Pigment
Melanin is manufactured inside cells called melanocytes, which sit in the deepest layer of your epidermis. Everyone has roughly the same number of melanocytes regardless of skin color. The difference lies in how much melanin those cells produce and how they package and distribute it.
Inside each melanocyte, pigment is built within tiny compartments called melanosomes. These organelles go through four stages of development. They start as colorless bubbles, then develop an internal scaffolding of protein fibers. Enzymes arrive and begin depositing melanin onto those fibers, gradually darkening the compartment until it becomes a fully mature, pigment-packed melanosome. In darker skin, melanosomes tend to be larger, more numerous, and more densely filled with eumelanin. In lighter skin, they’re smaller and contain less pigment.
Once melanosomes are loaded with pigment, they travel along internal tracks inside the melanocyte’s long, branching arms. A molecular motor system pulls them outward to the tips of these branches, where they’re handed off to surrounding skin cells called keratinocytes. Each melanocyte supplies pigment to about 30 to 40 neighboring keratinocytes. Once inside, the melanin arranges itself above the cell’s nucleus like a tiny parasol, shielding DNA from ultraviolet radiation.
Genes That Control Skin Color
Skin color is one of the most genetically complex human traits, influenced by variations in dozens of genes. Research has identified several that play outsized roles. Just three genes, known as SLC45A2, SLC24A5, and ASIP, account for roughly 46 percent of the variation in skin pigmentation across global populations. When interactions between ASIP and SLC45A2 are factored in, that number rises to nearly 50 percent.
These genes affect different steps in the pigment production process. Some control how much of a key enzyme is delivered to melanosomes. Others influence how acidic or alkaline the melanosome interior is, which changes how efficiently melanin can be synthesized. Still others regulate whether the melanocyte favors eumelanin or pheomelanin production. One well-studied gene, MC1R, acts as a switch between the two pigment types. Certain variants of MC1R shift production toward pheomelanin, which is why mutations in this gene are strongly associated with red hair and fair skin.
Because so many genes are involved, skin color doesn’t follow simple inheritance patterns. Two parents of intermediate skin tone can have children who are noticeably lighter or darker than either parent, depending on which combination of gene variants each child inherits.
Beyond Melanin: Other Pigments in Your Skin
Melanin gets most of the attention, but at least three other pigments contribute to how your skin looks. Oxyhemoglobin, the oxygen-carrying molecule in red blood cells, gives skin a reddish or rosy undertone. This is most visible in lighter skin, where less melanin is present to mask it. When blood loses oxygen, deoxyhemoglobin shifts to a darker, purplish-red hue, which is why skin can look bluish around the lips or fingertips when circulation is poor.
Carotenoids, yellow-orange pigments absorbed from fruits and vegetables like carrots, sweet potatoes, and leafy greens, also accumulate in the skin. Once ingested, these pigments are carried through the bloodstream and deposited in the outer layers of skin, adding a warm yellow-orange tint. This carotenoid glow is often perceived as a sign of health, and research suggests it can noticeably change skin appearance within just a few weeks of increased fruit and vegetable intake.
Why Skin Color Varies Around the World
The global pattern of human skin color is one of the clearest examples of natural selection acting on a visible trait. It’s the product of two competing biological needs: protecting a crucial vitamin called folate from destruction by UV radiation, and allowing enough UV light through the skin to produce vitamin D.
Near the equator, where UV radiation is intense year-round, dark skin rich in eumelanin evolved as a shield. UV light can break down folate circulating in blood vessels near the skin’s surface. Folate deficiency during pregnancy increases the risk of serious birth defects, so maintaining adequate folate levels had a direct impact on reproductive success. Dark pigmentation blocks the UV wavelengths responsible for this damage.
Farther from the equator, a different pressure took over. Vitamin D is synthesized in the skin when a very specific band of UVB light (wavelengths between 290 and 310 nanometers) converts a cholesterol-related molecule into previtamin D. At higher latitudes, where UVB is weak and highly seasonal, heavily pigmented skin blocks too much of this limited light. Lighter skin evolved in these regions because it allowed enough UVB penetration to maintain vitamin D production during the months when sunlight was scarce.
This is why skin color correlates so strongly with latitude. Populations that lived for thousands of generations near the equator developed the darkest skin. Those at high latitudes developed the lightest. Populations in between tend to have intermediate tones. When people migrate to environments their ancestors didn’t evolve in, this mismatch can cause problems: dark-skinned individuals at high latitudes are more prone to vitamin D deficiency, while light-skinned individuals in tropical climates face higher rates of UV-related skin damage.
When Pigmentation Goes Wrong
Several conditions disrupt normal melanin production or distribution, leading to patches of skin that are lighter or darker than expected.
- Albinism is a group of inherited conditions in which melanin production is sharply reduced or absent. There are four main forms, each caused by mutations in a different gene, but all of them ultimately prevent a key enzyme from reaching the melanosome where it’s needed. The most severe form results in a complete lack of pigment in the skin, hair, and eyes throughout life. Milder forms allow some pigment to develop over time.
- Vitiligo is an acquired condition in which the immune system attacks and destroys melanocytes, leaving expanding white patches on the skin. It often starts after a triggering event like severe sunburn, emotional stress, or exposure to certain chemicals. In people who are genetically susceptible, this trigger causes melanocyte damage that sets off an immune chain reaction, spreading the loss of pigment well beyond the original site.
- Melasma produces dark, blotchy patches, usually on the face. It’s driven by an overproduction of melanin, often triggered by hormonal changes during pregnancy or from oral contraceptives, combined with sun exposure. The melanocytes themselves are healthy but have been switched into overdrive.
How Tanning Works
When UV radiation hits your skin, it triggers melanocytes to ramp up melanin production. This is your body’s attempt to build a more protective pigment shield in response to a perceived threat. The process takes time, which is why a tan develops over days rather than hours. What you see as a tan is essentially more melanin being packed into melanosomes and distributed to a greater number of keratinocytes.
An immediate, short-lived darkening can also occur within minutes of sun exposure. This happens when UV light chemically alters melanin that’s already present in the skin, oxidizing it to a darker shade. This fades quickly and provides minimal protection compared to the delayed tan, which involves genuinely new melanin synthesis. Both responses are signs that UV radiation has reached your skin cells, regardless of whether you burn or not.

