Yes, melanin has a genetic effect. Genetics plays an important role in determining the level of melanin production in the body and the color that appears on the skin, hair and eyes.