A class of compounds called becatyanins are responsible for the red colouration beetroot.
The major compound responsible for the colour is betanin: this can be extracted from beetroots and used as a red food dye called beetroot red . which has the E number E162