7-trifluoromethylquinoline-functionalized luminescent photochromic spiropyran with the stable merocyanine species both in solution and in the solid state.