The present invention relates to a cosmetic composition comprising compounds or salts of formula (I) or formula (II), wherein R1 and R2 are both independently hydrogen (H), or a saturated, straight or branched C1-C8 alkyl group. More particularly, the present invention also relates to the use of said cosmetic composition for the prevention of the graying of hair and/or for restoration and/or maintenance of the natural hair color.La présente invention concerne une composition cosmétique comprenant des composés ou des sels de formule (I) ou formule (II), R1 et R2 étant tous deux indépendamment un hydrogène (H), ou un groupe alkyle en C1-C8 linéaire ou ramifié, saturé. Plus particulièrement, la présente invention concerne en outre l'utilisation de ladite composition cosmétique pour la prévention du grisonnement des cheveux et/ou pour la restauration et/ou la maintenance de la couleur naturelle des cheveux.