Hematoxylin is a reasonably simple dye to make. The dye itself is extracted from the tree Hematoxylon campechianum.
Oxidation of the hematoxylin produces hematein, which is the actual dye used in an H&E stain. Addition of the mordant improves the ability of the hematein to attach to the anionic (negatively charged) components of the tissues.