(2Z)-1-(5-Hydroxy-3-methyl-1-phenyl-1H-pyrazol-4-yl)-3-(4-methoxyanilino)but-2-en-1-one

The central residue in the title compound, C21H21N3O3, is close to planar (r.m.s. deviation = 0.0753 Å for all non-H atoms from OH to NH inclusive): the hydroxy, amino and carbonyl groups all lie to the same side of the molecule (the conformation about the ethene bond is Z), facilitating the formation of intramolecular O—H⋯O and N—H⋯O hydrogen bonds that close S(6) rings. However, overall the molecule is twisted as the terminal aromatic rings are not coplanar with the central plane [dihedral angles = 20.55 (5) and 80.90 (4)° for the N-bound phenyl ring and the methoxybenzene ring, respectively]. The dihedral angle between the rings is 82.14 (7)°. Supramolecular layers in the ac plane mediated by C—H⋯π interactions are found in the crystal.