Cellular pH homeostasis is essential for many physiological and pathological processes. pH monitoring is helpful for the diagnosis, treatment and prevention of disorders and diseases. Herein, we developed a ratiometric fluorescent pH probe (TCC) based on a coumarin derivative containing a highly active lactone ring. TCC exhibited a typical AIE effect and emitted blue fluorescence under weak acidic condition. When under weak basic condition, the active lactone moiety underwent a hydrolysis reaction to afford a water-soluble product, which gave red-shifted emission. The emission color change from blue through cyan and then to yellow within pH 6.5–9.0 which is approximate to the biological pH range. And the fluorescence color change along with pH value is reversible. Furthermore, TCC was successfully utilized in the detection of the intracellular pH change of live HeLa cells, which indicated that TCC had practical potential in biomedical research.