The red colour in onions is due to the anthrocyanins. Red onion bulbs contain anthcyanin in the outer epidermis of all except the very inner layers, but the inner epidermis is mainly pigment-free except for occasional small patches of anthocyanin-containing cells.