I am pretty sure you are thinking of melanin. Melanin gives basically everything on our body colour including our hair, skin, iris etc.
Melanin
Hair turns gray due to a decrease in production of melanin, the pigment that gives hair its color. As we age, the cells responsible for producing melanin become less active, leading to a gradual loss of color in the hair. Genetics also play a role in determining when and how quickly this process occurs.
Melanocytes are specialised cells that produce melanin. Melaninproduces pigment, a colour, which is found in the skin, hair and in the iris of the eye.
Melanin is the source that determines the pigment in your hair. Usually, melanin is a hereditary trait. For example, if both of your parents have darker hair, then you were also probably born with darker hair as well.
Each hair follicle contains a certain number of pigment cells. As we age the pigment cells in the hair follicles gradually die and the hair turns gray, silver, or white.
Keratinocytes or squamous cells produce keratin and Melanocytes produce melanin, pigment.
Melanocytes are cells in the skin that produce a pigment called melanin.
She has a lot of melanin in her hair. Melanin is the pigment that gives human hair, eyes, and skin their color. Cells called melanocytes produce melanin.
As we get older, the pigment cells in our hair follicles gradually die. When there are fewer pigment cells in a hair follicle, that strand of hair will no longer contain as much melanin and will become a more transparent color.
As we get older, the pigment cells in our hair follicles gradually die. When there are fewer pigment cells in a hair follicle, that strand of hair will no longer contain as much melanin and will become a more transparent color like gray.
Phototonic cells which produce solar power
When every human is born their hair creating cells are "programmed" to include a certain color of pigment into new hair cells, which are naturally white. However, as a person ages, the pigment producing cells start to disintegrate, consequently, creating in less and less pigment to incorporate into newly produced hair (hair grows 100 nanometers every second). This results in hair color decreasing from a vibrant red or brown to gray. Lighter color hair, such as blonde, will loose all of its pigment, resulting in white hair.
Epithelial cells