A cosmetic composition, containing, based on its weight, a) microcapsules of which the capsule walls comprise a resin that can be obtained by reacting i) at least one aromatic alcohol or the ethers or esters thereof and ii) at least one aldehydic component that comprises at least two C atoms per molecule, and iii) in the presence of at least one homopolymer or copolymer of 2-acrylamido-2-methyl-propane sulfonic acid or the salts thereof b) from 0.01 to 70 wt.% of at least one cosmetic active ingredient from the group of b1) oxidation dye precursors and/or b2) direct dyes and/or b3) oxidizing agents selected from hydrogen peroxide, and the addition compounds thereof on solid carriers and/or b4) surfactants and/or emulsifiers and/or b5) hair-conditioning active ingredients and/or b6) deodorizing and/or antiperspirant active ingredients and/or b7) skin-lightening and/or skin-soothing and/or moisturizing active ingredients and/or b8) inorganic and/or organic UV filter substances and/or b9) sebum-regulating active ingredients and/or mechanical exfoliating agents and/or antimicrobial active ingredients and/or b10) hair-setting or hair-styling active ingredients and/or b11) anticariogenic active ingredients and/or b12) active ingredients that prevent tartar formation and/or b13) mixtures of these active ingredients b1) - b12). a) microcapsules of which the capsule walls comprise a resin that can be obtained by reacting i) at least one aromatic alcohol or the ethers or esters thereof and ii) at least one aldehydic component that comprises at least two C atoms per molecule, and iii) in the presence of at least one homopolymer or copolymer of 2-acrylamido-2-methyl-propane sulfonic acid or the salts thereof i) at least one aromatic alcohol or the ethers or esters thereof and ii) at least one aldehydic component that comprises at least two C atoms per molecule, and iii) in the presence of at least one homopolymer or copolymer of 2-acrylamido-2-methyl-propane sulfonic acid or the salts thereof b) from 0.01 to 70 wt.% of at least one cosmetic active ingredient from the group of b1) oxidation dye precursors and/or b2) direct dyes and/or b3) oxidizing agents selected from hydrogen peroxide, and the addition compounds thereof on solid carriers and/or b4) surfactants and/or emulsifiers and/or b5) hair-conditioning active ingredients and/or b6) deodorizing and/or antiperspirant active ingredients and/or b7) skin-lightening and/or skin-soothing and/or moisturizing active ingredients and/or b8) inorganic and/or organic UV filter substances and/or b9) sebum-regulating active ingredients and/or mechanical exfoliating agents and/or antimicrobial active ingredients and/or b10) hair-setting or hair-styling active ingredients and/or b11) anticariogenic active ingredients and/or b12) active ingredients that prevent tartar formation and/or b13) mixtures of these active ingredients b1) - b12). b1) oxidation dye precursors and/or b2) direct dyes and/or b3) oxidizing agents selected from hydrogen peroxide, and the addition compounds thereof on solid carriers and/or b4) surfactants and/or emulsifiers and/or b5) hair-conditioning active ingredients and/or b6) deodorizing and/or antiperspirant active ingredients and/or b7) skin-lightening and/or skin-soothing and/or moisturizing active ingredients and/or b8) inorganic and/or organic UV filter substances and/or b9) sebum-regulating active ingredients and/or mechanical exfoliating agents and/or antimicrobial active ingredients and/or b10) hair-setting or hair-styling active ingredients and/or b11) anticariogenic active ingredients and/or b12) active ingredients that prevent tartar formation and/or b13) mixtures of these active ingredients b1) - b12).