I don't think they will work too well.
For you to make melanin (lit. tanning pigment), you need the enzyme tyrosinase and the non-essential amino acid tyrosine. Along with many other enzymes and elements.
Basically ...
As with most metabolic pathways, the first compound in a pathway is converted to the next compound by the action of an enzyme.
For example, in the simple pathway A-->B-->C, the conversion of compound A to B occurs because of the action of Enzyme 1, and the conversion of B to C occurs because of the action of Enzyme 2.
The formation of melanin pigment follows a pathway like this, but the pathway is more complex and not all of the steps are known.
________________________ Longer ...
The tyrosinase gene makes the tyrosinase. And tyrosine is already abundant if you have a moderate protein diet, and that protein is converted into tyrosine.
That's why tyrosine is a non-essential amino acid: the body makes it, so it doesn't have to be included in the diet.
Tyrosinase (one of the enzymes) converts the tyrosine to DOPA, then to Dopaquinone. The Dopaquinone then forms black-brown eumelanin or red-yellow pheomelanin, because not all types of melanin are the same.