The invention concerns the use of compounds with formula (I) R-N1-spermidine, or 1,4-butandiamin,N-(3-amino propyl)- N1-R, (I) H2N - (CH2)3 - N1(R) - (CH2)4- NH2 either as such or in the form of a pharmaceutically acceptable derivative, such as an active ingredient in a cosmetic composition designed to promote hair pigmentation, particularly the pigmentation of the shaft, and a composition suitable to achieve said pigmentation effect and containing said active ingredient, either as such or in the form of a pharmaceutically acceptable derivative such as a salt, for topical administration.