As an example, hair color depends on how much of a dark substance called melanin is put into the hair as it grows.
This explanation illustrates how human hair color is established by the amount of a dark pigment, melanin, that is deposited into the hair follicle during its development.