Substantive UV-absorbing water-soluble quaternary salts of cinnamidoalkylamine of formula I. Hair, skin and fabric care compositions containing the compounds of formula I;wherein R1 represents up to four substituents, same or different, selected from H, halo, -OH, -NH2, -NO2, -OCH3, -N(CH3)2, alkyl groups containing up to 6 carbon atoms, alkoxy groups containing up to 6 carbon atoms, alkylamino or N,N-dialkylamino groups containing up to 6 carbon atoms; R2 is selected from hydrogen, alkyl group containing up to 6 carbon atoms; R3 and R4 are independently selected from benzyl, alkyl group containing up to 6 carbon atoms; n is an integer from 1 to 6; m is an integer from 1 to 10; X- is a counter anion of quaternary centres selected from halides including chloride, bromide, iodide and methane sulphonate and its derivatives such as trifluoro methane sulphonate, benzene sulphonates including its p-bromo, nitro and methyl derivative.