What you understand by react may be soluble?! The only type of dyes I know reacting with water are reactive dyes, and seldom change the color by this reaction, the chromophore being in another part of the dye molecule, not in the reactive one. The color of a dye may change with the solvent polarity as it has been already said.
see also the book:
Reichardt, Christian; Welton, Thomas (2010). Solvents and solvent effects in organic chemistry (4th, edition.), Wiley-VCH, Weinheim p. 360. ISBN 9783527324736