The water-soluble tetraphenylethylene derivatives bearing sulfonic acid groups, namely TPE1S, TPE2S, TPE3S, and TPE4S were synthesised. These derivatives exhibit aggregation-induced emission (AIE) behavior, and fluorescence is also detected in dilute aqueous solution under UV irradiation. Furthermore, these compounds display slightly photochromism in both dissolved and solid states. When applied to modified cotton fabric substrates, the compounds exhibit significant photochromic properties due to the interaction force with the fibers. The photochromic behavior of the material can be modulated by external stimuli such as light, temperature, and humidity. The material undergoes complete decolorization within least 3300 s under dark conditions, while green light irradiation accelerates the process to 20 s. A discernible change in imaging color occurs after 18 h of storage at − 20 °C. At 50 °C, the color fades completely within 60 s. These features endow the materials with the potential for light-activated multicolor fluorescent patterning, information encryption, anti-counterfeiting, and smart textiles.