The use of a thermally irreversible photochromic coloring agent, selected in particular from compounds belonging to the diarylethene family and/or those belonging to the fulgide family, as a coloring agent in a cosmetic composition, and to cosmetic compositions comprising it.