Compounds of the formula I where E denotes NR 4 or O, Sp denotes a bond, alk, -C - or - -alk, R 1, R 2 or R 3 each, independently of one another, denote -H, -A, -OA, -(CH 2) p -OH, -C OA, COOH or COOX, p denotes an integer from 1 to 4, X is the counterion to the [COO-] group, R 4 denotes A, D is a substituent of the formula II, III, IV, V, VI, VII, VIII, IX, X, XI or XII, where R a, R j and R' j each, independently of one another, denote A, R b denotes H or A, R g and R' g each, independently of one another, denote H, Hal, NA 2, CN, COOH, OH, CF 3, OA, OC A, C OA, NHC A, NHSO 2 A, SO 2 NA 2, R s denotes H, A, NA 2, OA or SO 3 Y, R i and R' i each, independently of one another, denote H or A, R c and R d each, independently of one another, denote H or A, where A may be substituted by at least one OH group, R e denotes an alkyl group having 1 to 6 C atoms which is substituted by at least one group NA 2 or NA 3 Y, Y is an anion of an organic or inorganic acid or a cation, A denotes a linear or branched alkyl group having 1 to 20 C atoms, Hal denotes F, Cl, Br or I, m denotes 0, 1, 2, 3, 4 or 5 and alk denotes a linear or branched or cyclic alkylene group having 1 to 18 C atoms, and/or salts, tautomers, stereoisomers and/or solvates thereof, including mixtures thereof in all ratios. E denotes NR 4 or O, Sp denotes a bond, alk, -C - or - -alk, R 1, R 2 or R 3 each, independently of one another, denote -H, -A, -OA, -(CH 2) p -OH, -C OA, COOH or COOX, p denotes an integer from 1 to 4, X is the counterion to the [COO-] group, R 4 denotes A, D is a substituent of the formula II, III, IV, V, VI, VII, VIII, IX, X, XI or XII, where R a, R j and R' j each, independently of one another, denote A, R b denotes H or A, R g and R' g each, independently of one another, denote H, Hal, NA 2, CN, COOH, OH, CF 3, OA, OC A, C OA, NHC A, NHSO 2 A, SO 2 NA 2, R s denotes H, A, NA 2, OA or SO 3 Y, R i and R' i each, independently of one another, denote H or A, R c and R d each, independently of one another, denote H or A, where A may be substituted by at least one OH group, R e denotes an alkyl group having 1 to 6 C atoms which is substituted by at least one group NA 2 or NA 3 Y, Y is an anion of an organic or inorganic acid or a cation, A denotes a linear or branched alkyl group having 1 to 20 C atoms, Hal denotes F, Cl, Br or I, m denotes 0, 1, 2, 3, 4 or 5 and alk denotes a linear or branched or cyclic alkylene group having 1 to 18 C atoms, and/or salts, tautomers, stereoisomers and/or solvates thereof, including mixtures thereof in all ratios. R a, R j and R' j each, independently of one another, denote A, R b denotes H or A, R g and R' g each, independently of one another, denote H, Hal, NA 2, CN, COOH, OH, CF 3, OA, OC A, C OA, NHC A, NHSO 2 A, SO 2 NA 2, R s denotes H, A, NA 2, OA or SO 3 Y, R i and R' i each, independently of one another, denote H or A, R c and R d each, independently of one another, denote H or A, where A may be substituted by at least one OH group, R e denotes an alkyl group having 1 to 6 C atoms which is substituted by at least one group NA 2 or NA 3 Y, Y is an anion of an organic or inorganic acid or a cation, A denotes a linear or branched alkyl group having 1 to 20 C atoms, Hal denotes F, Cl, Br or I, m denotes 0, 1, 2, 3, 4 or 5 and alk denotes a linear or branched or cyclic alkylene group having 1 to 18 C atoms, and/or salts, tautomers, stereoisomers and/or solvates thereof, including mixtures thereof in all ratios.