The 1,3,5-triarylpent-2-en-1,5-dione group selectively undergoes cyclisation and changes its colour from yellow to magenta upon coordination of Hg2+ on a remote site.