An agent and a method for dyeing keratin fibers, in which at least two preparations (A) and (B) which are packed separately from each another and optionally an additional preparation (C) which is packed separately from (A) and (B) are mixed into an application mixture immediately prior to the application process. The preparation (A) includes at least one oxidation dye pre-product and paraffin oil, and the preparation (B) is liquid and includes, based on the weight of the preparation, at least one oxidation agent and xanthan gum. The agent and method lead to extremely stable foams which allow a simple and intensive fiber dyeing process. The stability remains high even in the event of high concentrations of salt.