What chemical substance is in red cabbage which serves as an indicator for acids and bases?

3 answers

http://chemistry.about.com/od/acidsbase1/a/red-cabbage-ph-indicator.htm

http://en.wikipedia.org/wiki/Red_cabbage
the chemical substance called flavin (an anthocyanin)

is it write?
I think both flavins and anthocyanins are classes. I don't think either article I cited gives the exact name.