dark brown or black pigment found in animal bodies, 1832, Modern Latin, with chemical suffix -in (2); the first element is from Greek melas (genitive melanos) "black" (see melano-). Related: Melanism; melanistic.
word-forming element meaning "black," from Greek melano-, combining form of melas (genitive melanos) "black, dark, murky,"probably from a PIE root *melh-"black, of darkish color" (source also of Sanskrit malinah "dirty, stained, black," Lithuanian mėlynas"blue," Latin mulleus "reddish").
<a href="https://www.etymonline.com/word/melanin">Etymology of melanin by etymonline</a>
Harper, D. (n.d.). Etymology of melanin. Online Etymology Dictionary. Retrieved $(datetime), from https://www.etymonline.com/word/melanin