Epidermal hyperpigmentation refers to the increased production of melanin in the epidermis, leading to darkened patches of skin. Melanin is a pigment produced by specialized cells called melanocytes located in the basal layer of the epidermis. When these melanocytes produce excessive melanin, it gets transferred to keratinocytes, causing the visible darkening of the skin.