I don’t know if I would call him racist but certainly not worthy of his legend.
gandhi was openly rooting for Hitler in ww2. He was racist.
Ghandi's racism