The disclosure relates to agents for dyeing keratin fibers, in particular human hair, containing, in a cosmetic carrier (a) at least one direct dye of formula (I), wherein Het1, Het2 represent cationic heterocycles; R1, R3 respectively represent a substitute which is not hydrogen, and Q represents a grouping of formula (VIII), (IX), or (X).