Melanin production is influenced by various factors, including genetics, hormonal changes, and exposure to UV radiation. For instance, increased UV exposure stimulates melanocytes to produce more melanin as a protective response. Hormones such as melanocyte-stimulating hormone (MSH) and adrenocorticotropic hormone (ACTH) can also affect melanin synthesis.