Encodes a member of the R2R3-MYB transcription factor gene family. Induced by jasmonate. Involved in jasmonate response during stamen development. MYB21 interacts with JAZ proteins, and functions redundantly with MYB24 and MYB57 to regulate stamen development. Promotes flavonol biosynthesis through regulation of FLS1 gene expression.