Assemblies of perylene diimide derivatives with melamine into luminescent hydrogels.