The resultant N-heteroarylamidomethyl pigment derivatives can be isolated by adding the reaction mixture to a liquid in which the pigment derivative is completely or almost completely insoluble, preferably water or methanol or other lower aliphatic alcohols (such as ethanol, propanol, or butanol), as well as mixtures thereof.