Aggregation-enhanced emission enables phenothiazine coumarin as a robust ratiometric fluorescent for rapid and selective detection of HClO.