The name of the substance that gives skin and hair its pigment is Melanin.
Melanin is an expansive term for a gathering of characteristic colors found in many living beings. Melanin is created by the oxidation of the amino corrosive tyrosine, trailed by polymerization.