Cosmetic composition comprising, in a physiologically acceptable medium, at least one compound of formula, salts thereof, addition salts thereof, solvates thereof, especially hydrates thereof, the tautomeric forms being included: in which: - R1 and R2, independently of one another, represent H, -OH, -NRR' (with R, R', which may be identical or different, being H or a linear or branched C1-C12 alkyl radical); or a carbon-based group, especially an optionally aromatic, saturated or unsaturated, linear, branched and/or cyclic C1-C18 alkyl group, which may contain one or more heteroatoms O, N and/or S, especially OH, COOH and/or NRR'; - Z represents a monovalent radical chosen from: (i) a hydrogen atom, (ii) a linear or branched C1 to C32 (saturated) alkyl radical; (iii) a linear or branched C2 to C32 (unsaturated) alkene radical, comprising one or two C=C double bonds; (iv) a C1-C32, especially C2-C24, or even C3-C18, better still C4-C12 alkyl radical, substituted with a C6-C10, especially C6-C8 aryl; in particular phenyl; it being possible for said radicals to optionally be substituted with 1 to 8 groups chosen from -OH, -OR, -SH, -SR, -SO 3 H, -SO 3 R, -SO 2 NRR',-COOH, -COOR, -CONRR', -NR-C -NRR', -NRR' and -N + RR'R", with R, R' and R" = H or C1-C6 alkyl; and the substituents of formula (a) to (h) below: and/or it being possible for said radicals to optionally comprise 1 to 8 groups chosen from, alone or as a mixture, -S-, S, SO 2, -NH- (or =NH), -N= (trivalent), -O-, -C -, -C(=NH)-, -N + (CH 3) 2 -An - (An -: anion), the cosmetically acceptable medium comprising at least one ingredient chosen from propellants, carbon-based oils; C8-C40 alcohols, C8-C40 esters, C8-C40 acids; nonionic surfactants, cationic surfactants, anionic surfactants, amphoteric surfactants, zwitterionic surfactants; sunscreens; antidandruff agents; antioxidants; reducing agents; oxidation bases, couplers, oxidizing agents, direct dyes; hair straightening agents, pearlescent agents and opacifying agents; plasticizers or coalescence agents; hydroxy acids; pigments; fillers; polyols; waxes; thickeners, emulsifiers; polymers. - R1 and R2, independently of one another, represent H, -OH, -NRR' (with R, R', which may be identical or different, being H or a linear or branched C1-C12 alkyl radical); or a carbon-based group, especially an optionally aromatic, saturated or unsaturated, linear, branched and/or cyclic C1-C18 alkyl group, which may contain one or more heteroatoms O, N and/or S, especially OH, COOH and/or NRR'; - Z represents a monovalent radical chosen from: (i) a hydrogen atom, (ii) a linear or branched C1 to C32 (saturated) alkyl radical; (iii) a linear or branched C2 to C32 (unsaturated) alkene radical, comprising one or two C=C double bonds; (iv) a C1-C32, especially C2-C24, or even C3-C18, better still C4-C12 alkyl radical, substituted with a C6-C10, especially C6-C8 aryl; in particular phenyl; (i) a hydrogen atom, (ii) a linear or branched C1 to C32 (saturated) alkyl radical; (iii) a linear or branched C2 to C32 (unsaturated) alkene radical, comprising one or two C=C double bonds; (iv) a C1-C32, especially C2-C24, or even C3-C18, better still C4-C12 alkyl radical, substituted with a C6-C10, especially C6-C8 aryl; in particular phenyl;