A preparation for coloring keratin fibers containing dyes and/or dye precursors, at least one silicone oil and/or silicone gum and at least one polymer which contains at least one monomer unit corresponding to formula (I):