The aggregation of V-shaped hydroxypyrimidine derivatives is formed through an intermolecular hydrogen bond in chloroform that cannot form a hydrogen bond with the solute, giving rise to a large enhancement of the two-photon absorption and two-photon induced fluorescence.