The present disclosure relates to a cosmetic composition for keratin fibers, for example, human keratin fibers such as hair, comprising: at least one anionic surfactant (A) comprising, in its structure, at least one group chosen from sulphate, sulphonate, and phosphate groups at least one carboxylic anionic surfactant (B) other than the at least one anionic surfactant (A) at least one surfactant (C) chosen from amphoteric and zwitterionic surfactants at least one alkyl(poly)glycoside non-ionic surfactant (D) at least one cationic polymer (E) at least one zinc salt (F) and optionally at least one UV-screening agent (G) and further wherein the weight ratio of the total amount of the surfactants (A), (B), (C), and (D) to the amount of zinc element of the at least one zinc salt has a value of less than 30. The present disclosure also relates to the uses of the disclosed cosmetic compositions for washing keratin fibers, for instance, colored hair, and for protecting the color of the keratin fibers from sunlight and/or repeated washing.