Skin gets its color primarily from melanin, a pigment produced by specialized cells called melanocytes in the outer layer of skin. The more melanin your skin contains, and the type of melanin it produces, directly determines how dark your skin appears. But many factors beyond genetics can shift your skin darker, from sun exposure and hormones to inflammation, nutritional deficiencies, and certain medications.
How Melanin Creates Skin Color
Melanocytes produce melanin from an amino acid called tyrosine through a chain of chemical reactions. The pigment gets packaged into tiny compartments called melanosomes, which are then transferred to the surrounding skin cells. Once there, the melanosomes position themselves over the cell’s nucleus like a shield, protecting your DNA from damage.
Your body makes two types of melanin. Eumelanin is brownish-black and provides strong protection against UV radiation. Pheomelanin is yellowish-red and offers far less protection. The ratio between these two pigments, along with total melanin density, determines your baseline skin tone. People who produce mostly eumelanin tend to have darker skin that tans easily. Those who produce mostly pheomelanin tend to have lighter skin, often with freckles, and burn rather than tan. Pheomelanin-dominant skin also generates more cell-damaging molecules called reactive oxygen species, which can increase the risk of skin cancer.
Genetics Set Your Baseline
A receptor on the surface of melanocytes acts as the main switch controlling which type of melanin gets produced. When this receptor is active, melanocytes churn out eumelanin. When it’s inactive or blocked, they default to pheomelanin. Common genetic variations in the gene coding for this receptor are strongly linked to natural differences in skin and hair color. Certain variants reduce the receptor’s ability to trigger eumelanin production, which is why they’re most common in people with red hair, fair skin, and sun sensitivity.
This single gene is important, but it’s far from the whole story. Researchers have identified dozens of other genes that contribute to pigmentation, each nudging your skin tone slightly lighter or darker. The combined effect of all these genetic inputs is what gives human skin color its enormous range.
How Sun Exposure Darkens Skin
Tanning is your body’s damage-response system in action. When UV radiation hits your skin, it damages the DNA inside skin cells. That damage activates a protein called p53, sometimes called the “guardian of the genome,” which sets off a signaling cascade. The damaged skin cells begin producing a hormone that travels to nearby melanocytes and binds to their surface receptors. This triggers the melanocytes to ramp up melanin production.
The newly made melanin gets packaged and shipped back to the surrounding skin cells, where it settles over the nucleus to shield DNA from further UV damage. This is why a tan develops gradually over hours to days: it takes time for the entire signaling chain to unfold and for enough melanin to accumulate. The tan itself is essentially a biological bandage, evidence that your skin has already sustained DNA damage and is trying to prevent more.
Hormonal Changes
Hormones can directly stimulate melanocytes to produce more pigment, which is why pregnancy, birth control pills, and hormone replacement therapy sometimes cause patches of darkened skin. The condition is called melasma, and it typically appears on the face, particularly the cheeks, forehead, and upper lip.
Estrogen enhances melanin production by activating receptors on melanocytes that upregulate the enzymes responsible for building pigment. Progesterone works through a different signaling pathway but arrives at the same result: more melanin. When both hormones are elevated, as during pregnancy, the combined effect can produce noticeable darkening. Melasma often fades after hormone levels return to normal, though it can persist for months or years.
Addison’s disease, a condition where the adrenal glands don’t produce enough hormones, causes a different kind of hormonal darkening. The body compensates by flooding the bloodstream with a signaling molecule called ACTH, which happens to bind to the same receptor on melanocytes that triggers melanin production. The result is widespread darkening, especially noticeable in skin creases, gums, and areas exposed to friction.
Inflammation and Skin Injury
If you’ve ever noticed that a healed pimple, cut, burn, or eczema patch leaves behind a dark spot, you’ve experienced post-inflammatory hyperpigmentation. When skin is injured or inflamed, the immune response releases inflammatory molecules, prostaglandins, and reactive oxygen species. These signals stimulate nearby melanocytes to overproduce melanin, which gets deposited in the surrounding skin cells. In some cases, melanin leaks deeper into the skin’s lower layers, where it can linger for months.
This type of darkening is especially common and visible in people with medium to dark skin tones, because their melanocytes are already more active and respond more aggressively to inflammatory signals. Acne is one of the most frequent triggers, but surgical scars, insect bites, and skin conditions like psoriasis or eczema can all leave the same marks. The dark patches are not scars in the traditional sense. They fade over time, though deeper pigment deposits can take six months to a year or longer to resolve.
Age Spots and Cumulative Sun Damage
Age spots, also called solar lentigines, are flat brown patches that appear on sun-exposed areas like the hands, face, and forearms. Despite the name, they’re driven more by cumulative UV exposure than by aging itself. Years of sun damage cause structural changes in the skin: the boundary between the outer and inner skin layers develops elongated, club-shaped ridges packed with melanocytes that are producing excess melanin.
At the same time, the normal process of cycling skin cells upward slows down in these areas. Older skin cells linger longer, and melanin that would normally be shed with dead skin accumulates instead. The combination of overproduction and slower turnover creates a visible concentration of pigment in one spot.
Nutritional Deficiencies
Vitamin B12 deficiency can cause noticeable skin darkening, most commonly on the hands and feet. The knuckles are the most prominent site, but darkening of the palms, soles, and finger joints also occurs. Up to 1 in 5 people with deficient B12 levels develop some degree of skin hyperpigmentation. The darkening is usually reversible with B12 supplementation, though it may take weeks to months to fully resolve.
B12 deficiency rarely shows up as skin darkening alone. It typically accompanies other symptoms like fatigue, numbness or tingling in the hands and feet, a swollen or sore tongue, and anemia. Levels below 200 picograms per milliliter are considered deficient, and the condition is more common in people with absorption issues, strict vegetarian diets, or certain digestive conditions.
Medications That Darken Skin
A wide range of medications can cause skin darkening as a side effect. The mechanisms vary: some drugs or their byproducts physically deposit in the skin, while others stimulate melanocytes or make skin more sensitive to UV light.
- Antimalarials like hydroxychloroquine can cause blue-gray or brown discoloration, particularly on the shins and face.
- Certain antibiotics, especially minocycline (a tetracycline), are well-known for causing blue-black pigmentation in sun-exposed areas, scars, and even teeth.
- Chemotherapy drugs including cyclophosphamide, doxorubicin, and bleomycin frequently cause darkening of the skin, nails, or mucous membranes.
- Heart medications like amiodarone can produce a slate-gray discoloration on sun-exposed skin.
Drug-induced pigmentation sometimes fades after the medication is stopped, but certain deposits, particularly from minocycline and amiodarone, can persist long after discontinuation. People on these medications are often more sensitive to sunlight, which can intensify the darkening effect.
Iron Overload
Hemochromatosis, a condition where the body absorbs too much iron from food, causes a distinctive bronze or brown discoloration of the skin. The excess iron deposits in organs throughout the body, including the skin. In the early stages, the darkening can look so much like a suntan that people dismiss it. Over time, the combination of skin darkening and pancreatic damage (leading to diabetes) earned the condition its classic nickname: “bronze diabetes.” The pigmentation tends to be most noticeable on the face and can deepen gradually over months to years before other symptoms like joint pain or fatigue prompt a medical evaluation.

