The reactions which produce the dyes are carried out at an alkaline pH, and in many cases this is provided by the presence of ammonia in the formulation. The ...