Is Melanin Genetic? How Your Genes Control Skin Color

Yes, melanin is genetic. The amount and type of melanin your body produces is largely determined by your DNA, with at least 169 genes playing some role in the process. But melanin isn’t controlled by a single gene the way some traits are. It’s a polygenic trait, meaning dozens of genes work together to determine how much pigment your skin, hair, and eyes contain. Environmental factors like sun exposure also influence melanin levels on top of that genetic baseline.

How Multiple Genes Control Melanin

Unlike traits governed by one or two genes with clear dominant and recessive patterns, melanin production involves a large network of genes that each make a small contribution. A 2023 study identified 169 genes that affect melanin production, 135 of which had never been linked to pigmentation before. This helps explain why human skin color exists on a continuous spectrum rather than falling into a handful of distinct categories. The more melanin-promoting gene variants you inherit from both parents, the more pigment your cells produce.

This polygenic setup means children often have skin tones somewhere between their parents’, though not always. Because so many genes are involved, siblings can end up with noticeably different complexions. Each parent passes along a unique combination of pigmentation-related gene variants, and the way those variants interact is difficult to predict from appearance alone.

The Genes That Matter Most

While many genes are involved, a handful have outsized effects. The MC1R gene is the best studied. It codes for a receptor on the surface of melanocytes, the specialized cells that manufacture melanin. When this receptor is active, melanocytes produce eumelanin, the brown-black pigment that darkens skin and hair and provides strong UV protection. When the receptor is inactive or blocked, melanocytes switch to producing pheomelanin, a red-yellow pigment that offers little sun protection. People with certain MC1R variants tend to have red or blond hair, freckles, and light skin that burns easily.

Another major player is SLC24A5. A single variant in this gene, involving a swap of one amino acid in the protein it produces, is one of the strongest genetic predictors of light versus dark skin. The ancestral version of this variant is found in 93 to 100% of African and East Asian populations and is associated with darker pigmentation. The alternative version appears in 98 to 100% of Europeans and contributes to lighter skin. SLC45A2 is similarly influential: it produces a protein that regulates the internal chemistry of melanosomes (the tiny compartments inside melanocytes where melanin is actually made). Mutations in this gene can reduce pigmentation significantly, and in some cases cause a form of albinism.

The TYR gene deserves special mention because it codes for tyrosinase, the enzyme that kicks off melanin production. Tyrosinase converts the amino acid tyrosine into the chemical precursor of all melanin. Without functional tyrosinase, melanin cannot be made at all. A master regulatory gene called MITF sits above all of these, controlling whether the key enzymes get produced in the first place.

Two Types of Melanin, One Genetic Switch

Your body makes two forms of melanin, and the balance between them shapes your coloring. Eumelanin is the dark pigment responsible for brown and black hair and deeper skin tones. Pheomelanin is the lighter, reddish-yellow pigment behind red hair and freckles. Everyone produces some of both, but the ratio varies enormously from person to person.

That ratio is largely set by MC1R. When the gene is fully functional, the melanocortin 1 receptor stays active and drives eumelanin production. People who inherit loss-of-function variants (where the receptor doesn’t work properly) produce less eumelanin and more pheomelanin. This is why red hair runs in families: it reflects a specific, heritable shift in the melanin-production pathway. Blond hair, by contrast, often results from changes in other genes that reduce the total amount of eumelanin without necessarily increasing pheomelanin.

Why Skin Color Varies by Geography

The global pattern of human skin color is one of the clearest examples of natural selection acting on genetic traits. Near the equator, where ultraviolet radiation is intense year-round, populations evolved dark, eumelanin-rich skin. This pigmentation acts as a natural sunscreen, protecting against UV damage and preserving folate, a B vitamin that UV light breaks down and that is essential for cell division and fetal development.

As human populations migrated away from the tropics into regions with less sunlight, a different pressure emerged. The body needs UVB rays to produce vitamin D in the skin, and in northern latitudes (above roughly 46 degrees), UVB levels are too low for much of the year to sustain adequate vitamin D synthesis in darkly pigmented skin. This created positive selection for lighter skin, which lets more UVB penetrate. Populations at middle latitudes, between about 23 and 46 degrees, evolved intermediate skin tones along with the ability to tan, a flexible response to seasonal UV changes.

Genetic evidence supports this. In African populations, the MC1R gene shows almost no functional variation, a signature of strong purifying selection that kept the gene locked in its eumelanin-producing mode for millennia. Outside of Africa, MC1R and other pigmentation genes accumulated far more diversity as the selective pressure shifted.

When Melanin Genes Don’t Work

Albinism is the most dramatic illustration of melanin’s genetic basis. Oculocutaneous albinism is a group of inherited conditions in which mutations disrupt the melanin production pathway, resulting in very light skin, hair, and eyes along with vision problems. There are several types, each caused by mutations in a different gene. OCA1, the most severe form, involves mutations in the TYR gene that completely eliminate tyrosinase activity, meaning the body cannot produce melanin at all. Milder forms caused by mutations in OCA2, TYRP1, or SLC45A2 allow some pigment to accumulate over time. Nearly 200 different mutations in the TYR gene alone have been identified.

Albinism follows a recessive inheritance pattern: a person needs to inherit a nonfunctional copy of the relevant gene from both parents to be affected. Carriers, who have one working copy and one mutated copy, typically show normal pigmentation.

How Sun Exposure Adds to Your Genetic Baseline

Your genes set a baseline level of melanin, sometimes called constitutive pigmentation. But UV exposure can push melanin production above that baseline. When UV light hits your skin, it damages DNA in skin cells, which triggers a signaling cascade that ramps up tyrosinase activity and increases the production of eumelanin. This is the biological process behind tanning: your skin darkens as a protective response to UV-induced DNA damage.

This doesn’t change your underlying genetics. Once UV exposure stops, melanin production gradually returns to your genetic baseline and the tan fades. How much you can tan, and how quickly, is itself genetically influenced. People with MC1R variants that favor pheomelanin production have limited tanning ability because their melanocytes struggle to switch into eumelanin mode even when UV signals are strong. The capacity to tan is, in a sense, another genetically determined trait layered on top of your resting skin color.