The invention relates to agents for dyeing and/or permanently shaping keratin fibers, said agents containing, in a cosmetically acceptable carrier, at least one agent that changes the color and/or permanently the shape of the keratin fibers. Said agents further contain a flavonoid of formula (I), wherein R1 to R6 represent independently of each other a hydrogen atom, a hydroxy group, a hydroxy(C1-C4)alkoxy group or a sulfate group and X represents an optionally substituted glucoside group. The agents are stable, are satisfactory with respect to their color and/or shape changing properties and at the same time lead to fewer irritations of the scalp. The fibers treated with the agents according to the invention further have an improved condition and a stabilized structure.