This disclosure relates to a hair treatment agent, comprising at least one fatty alcohol, at least one cationic surfactant other than an esterquat, at least one esterquat, at least one cationic polysaccharide polymer, at least one silicone, and at least one compound of formula (I)(H—COO−)nXn+ (I)in which n denotes the number 1, 2 or 3, and X denotes H or a metal ion, and at least one divalent or trivalent metal salts reduces or prevents dye from being washed out of colored hair.