Could be an anthocyanin like the delphinidins which are purple. I studied a purple "reaction zone" in eucalyptus wood which was dominated by hydrolyzable tannins, although we could never work out what was responsible for the purple. However when iron is marked on the fresh wood the colour changed to purple. See publications below.
Cheers, Karen
Article Properties of reaction zones associated with decay from prun...
Article Identification of hydrolysable tannins in the reaction zone ...