ESIPT-capable pyrimidine-based compounds featuring short O–H···N intramolecular hydrogen bonds, 2-(2-hydroxyphenyl)-4-(3,5-dimethyl-1H-pyrazol-1-yl)-6-methylpyrimidine (HL1) and 2-(2-hydroxyphenyl)-4-(3,5-diphenyl-1H-pyrazol-1-yl)-6-methylpyrimidine (HL2), were synthesized by the condensation of 4-hydrazinyl-2-(2-hydroxyphenyl)-6-methylpyrimidine with acetylacetone and dibenzoylmethane. In solution, HL1 and HL2...