The lady’s poem relies upon two well-known prior poems for its effect: KKS XVII: 867 and Kokin Rokujō V: 3507.
The gromwell, murasaki 紫, was the source of violet dye, as well as being a standard poetic euphemism for a young woman desired by the poet.