B12 is one of the nutrients essential to your diet and can be found in meat, shellfish, and dairy, so if you're a vegan who wants to keep your hair color, you may need to consider B12 supplements or injections. Other less-common conditions that can lead to loss of hair coloring include neurofibromatosis, tuberous sclerosis, thyroid disease, vitiligo, and alopecia areata.