Why Do People Have Different Skin Colors: Melanin & UV

People have different skin colors primarily because of varying amounts and types of a pigment called melanin. Everyone has roughly the same number of pigment-producing cells in their skin, but those cells differ dramatically in how much melanin they produce, what kind they make, and how they package and distribute it. These differences arose over tens of thousands of years as human populations adapted to the intensity of ultraviolet (UV) radiation in the regions where they lived.

Two Types of Melanin Set the Spectrum

Your skin color comes down to the balance between two forms of melanin. Eumelanin is a dark brown or black pigment that absorbs UV radiation effectively and also works as an antioxidant, neutralizing molecules that damage DNA. Pheomelanin produces red and yellow tones. It gets its color from sulfur-containing building blocks, which is also why it behaves differently in sunlight: instead of simply absorbing UV, pheomelanin can actually generate harmful molecules when exposed to radiation.

People with very dark skin produce large quantities of eumelanin. People with very light or freckled skin, and especially those with red hair, produce a higher proportion of pheomelanin relative to eumelanin. Most people fall somewhere in between, with a mix that produces the wide range of olive, tan, golden, and brown tones seen across the world.

How Pigment Is Packaged Matters Too

The difference isn’t only about how much melanin you make. Melanin is produced inside tiny structures called melanosomes, and the size and arrangement of these packages vary significantly across skin types. In dark skin, melanosomes are larger and distributed individually throughout the surrounding skin cells. In light skin, melanosomes are smaller and bundled together in clusters wrapped in a membrane. Asian skin tends to fall between these two patterns, with roughly 63% of melanosomes distributed individually and 37% clustered.

Individually distributed melanosomes provide a more even, continuous shield against UV radiation. Clustered melanosomes leave more gaps. This packaging difference is one reason why skin color isn’t a simple dial from light to dark but involves visible differences in undertone, how evenly color is distributed, and how the skin responds to sun exposure.

The Evolutionary Tradeoff: Folate vs. Vitamin D

The most widely accepted explanation for why skin color varies geographically centers on a balancing act between two essential nutrients: folate and vitamin D. UV radiation drives both sides of this equation, but in opposite directions.

Folate, a B vitamin critical for DNA repair and healthy fetal development, breaks down when exposed to UV light. Studies have found a clear negative relationship between accumulated UV exposure and folate levels in the blood. Dark skin acts as a natural filter. Black skin blocks about 92.6% of UVB radiation, compared to 76% in white skin. Near the equator, where UV is intense year-round, high melanin production protects folate stores from being depleted.

Vitamin D, on the other hand, is synthesized in the skin when UVB rays trigger a chemical reaction. Darker skin slows this process. At higher latitudes, where sunlight is weaker and winter days are short, having less melanin allows the skin to capture what little UVB is available. This is the core tradeoff: too much melanin near the poles and you risk vitamin D deficiency; too little melanin near the equator and you risk folate destruction.

The practical difference is significant. A UK study found that a person with very dark skin needs about 25 minutes of midday sun exposure with forearms and lower legs uncovered to maintain adequate vitamin D levels through the British summer. A white-skinned person needs roughly 9 minutes under the same conditions. At more northern latitudes in Scotland, the darker-skinned individual might need up to 40 minutes daily. If only hands and face are exposed, neither group can maintain year-round vitamin D levels from sun alone.

Skin Color Tracks UV Intensity Worldwide

When researchers measure skin reflectance (a precise way of quantifying how light or dark skin is) across indigenous populations worldwide, the correlation with latitude is striking. Populations closest to the equator consistently have the darkest skin, and pigmentation lightens progressively toward the poles. The underlying driver is UV intensity, which peaks at the equator and drops with distance from it.

This pattern holds even at altitude. Tibetan populations living on the high plateau, where UV radiation is intensified by thin atmosphere, have darker baseline skin than lowland Han Chinese populations they’re closely related to. Researchers found that Tibetans living at progressively higher altitudes have progressively darker skin on both sun-exposed and sun-protected body areas, suggesting genetic adaptation rather than just tanning. Tibetans also show an enhanced tanning response, giving them what amounts to a two-layered defense: darker starting pigmentation plus a stronger ability to darken further when UV exposure increases.

Many Genes, Not Just One

Skin color is a polygenic trait, meaning it’s shaped by variants in many genes rather than a single switch. Research on ancient and modern DNA has identified several genes with strong effects on pigmentation, and the picture that emerges is surprisingly complex.

One gene, SLC24A5, has the strongest documented effect on light skin in European and West Asian populations. A key variant at this gene was introduced to Western Europe by Neolithic farming populations migrating from Anatolia (modern Turkey) and continued to be favored by natural selection after those populations mixed with existing hunter-gatherers. Another gene, SLC45A2, shows equally strong signals of selection in European populations. Both are involved in the machinery that produces melanin inside cells.

Other genes contribute to the mosaic. Variants near OCA2 appear to have been selected independently in European and East Asian populations, meaning different human groups arrived at lighter skin through partially different genetic routes. Variants near IRF4 were more common in ancient European hunter-gatherers. TYRP1, TYR, and HERC2 all carry variants that shift pigmentation and show evidence of natural selection over thousands of years.

In Tibetans, a different gene entirely, GNPAT, drives their pigmentation adaptation. An enhancer variant in this gene is found in 58% of Tibetans but is rare (0 to 18%) in other world populations. Functional experiments show this variant ramps up melanin production in response to UV exposure, explaining the stronger tanning response observed in highland Tibetans. The selection pressure on this gene is among the strongest documented in the Tibetan genome, second only to the famous genes for high-altitude oxygen adaptation.

How Much Protection Does Melanin Provide?

Melanin’s protective effect is real but more modest than many people assume. Estimates put the natural sun protection factor of melanin at roughly 1.5 to 4 SPF, meaning it absorbs somewhere between 50% and 75% of UV radiation. That’s far less than a bottle of sunscreen but, applied over an entire lifetime, the cumulative difference is enormous.

Dark skin allows only about 7.4% of UVB to penetrate the outer skin layer, compared to 24% in light skin. For UVA, the gap is even wider: 17.5% penetration in dark skin versus 55% in light skin. This translates directly to differences in DNA damage, rates of sunburn, and long-term skin cancer risk. People with higher pheomelanin ratios (typically those with red hair and very fair skin) face the highest vulnerability, because pheomelanin not only provides less UV shielding but actively generates free radicals when hit by sunlight.

The protection goes beyond cancer. By shielding folate, reducing DNA damage, and acting as a free radical scavenger, eumelanin functions as a broad-spectrum defense system. This is why strong melanin production was maintained in equatorial populations for hundreds of thousands of years, even as other traits shifted. The selective pressure was consistent, powerful, and directly tied to survival and reproduction.