Hair treatment agents, containinga) at least one anionic and/or amphoteric and/or nonionic surfactant,b) at least one anionic and/or amphoteric and/or nonionic surfactant that is different from a),c) at least one divalent or trivalent metal salt,d) at least one cellulose-based cationic polymer,e) at least one natural oil, andf) propionic acid and/or salts of propionic acid.reduce or prevent washing out of color from dyed hair.