The present application provides compositions having a keto-enol UV absorber, such as avobenzone, stabilized from forming iron complexes. The stabilization is provided by a chelating polymer derived from at least one monomer having lactam or carboxylic acid functionality. In one embodiment, the compositions are sunscreens that resist staining fabrics when washed in hard water. In another embodiment, the compositions also comprise one or more iron-containing adjuvants, such as colorants, dyes, and pigments. By stabilizing the UV absorber, cosmetics can be formulated that impart broad-spectrum UV-A protection to the user. Additional ingredients can be added to the formulation, like other UV absorbers (for even broader UV-A and UV-B protection), moisturizers, actives, conditioning agents, and rheology modifiers.