The hair color is due to the pigmentation of the hair follicles by two types of melanin:
Eumelanin- pigment that gives Black or Brown color
Pheomelanin- pigment that gives red color to hair