Tonic, predominant, dominant

The three jobs chords do — and the colours on this site.