A phenyltriazine compound has been used for the first time as a monomer in the construction of a hydrogel. This physically cross-linked soft material showed blue fluorescence when excited under UV-light. Polymer formation and intermolecular H-bonds arising from triazine moieties operate as aggregation-induced emission (AIE) mechanisms. The combination of soft materials and AIE properties expands the applications of these materials. As a proof of concept, two luminescent dyes have been incorporated into the hydrogel to produce a white-light-emitting material.