Disclosed are compositions for dyeing keratin fibers comprising at least one direct dye and/or an oxidative dye and optionally an activator, and also comprising a compound formed by esterification of phosphoric acid with isooctanol (2-ethylhexanol) and ethoxylated tridecylic alcohol.