The subject of the present invention is a composition for dyeing human keratin fibers such as the hair, comprising: (a) at least one oxidation dye precursor; (b) at least one first amphoteric or zwitterionic surfactant; (c) at least one second non-ionic or anionic surfactant; (d) one or more fatty substances; (e) at least one cationic polymer; (f) at least one non-ionic guar gum; (g) at least one oxidizing agent other than atmospheric oxygen. The present invention also relates to a process for dying human keratin fibers, in which this composition is applied to said fibers, and also to a suitable multicompartment device.