Gandhi was definitely a weirdo in sexual stuff. He was abstinent for the last 40 years of his life but "tested himself" by sleeping in the same bed with naked girls because he believed that morality wasn't true morality unless it was tested and not just forced upon you by circumstances.
There's no evidence that he ever had sex with anyone (young or not) during his abstinent period, and I don't believe there's any evidence he ever cheated on his wife, but he's still a full weirdo in that department. His Hindu influences, having gotten married off when he was just 13 years old, and having as much power as he did all contributed to that.
I think the day I found out even Ghandi was racist toward Black people is the day I realized that literally everywhere on the planet people are racist against Black people.
Not the best example because he was literally taught to be racist by the British. The British controlled Indian education while he was growing up, then he left to England for his college education, and then he moved to South Africa which was a racist British-controlled society. So there's little evidence that his racism was derived from anything other than typical White Supremacy teachings.
He eventually rebelled against it though during his South Africa years and became one of the staunchest anti-racist activists of his time, praising Black peoples, supporting Black leaders, and advocating for Black self-determination.
There are Indians in South Africa. He wanted them along with himself to be counted as white if I recall correctly.
During the first half of his South Africa period he was still racist and was upset that Indians were treated like Black folk in South Africa. But the more he was exposed to Black folk and the more he read anti-racist ideas, he realized he had been wrong and rejected his previous racism. By the end of his time in South Africa he was strongly supporting Black self-determination, allying himself with Black leaders, and said that Indians should not pursue anything in their own interest unless it supported Black interests as well.
Visiting England in 1931 he was to make it clear of those South African races who “are ground down under exploitation” that: “Our deliverance must mean their deliverance. But, if that cannot come about, I should have no interest in a partnership with Britain, even if it were of benefit to India.” (Young India, November 19, 1931, CW, Vol 48, p. 261).
Though cautious at this time about an amalgamated struggle, Gandhi provided a neat formula for mutual understanding. He declared that if Indian rights conflicted with African “vital interests”, he would “advise the forgoing of those rights” (Harijan, July 1, 1939, CW, Vol 69, p. 377).
In a series of statements before the launch of the famous Quit India movement against British rule in 1942, Gandhi stressed that the Western powers must withdraw not only from India but also thereafter from Africa. In an article dated July 18, 1942, under the title “ To Every Japanese ”, Gandhi wrote : “ Even if you win it will not prove that you were in the right ; it will only prove that your power of destruction was greater. This applies obviously to the Allies too, unless they perform now the just and righteous act of freeing India as an earnest and promise of similarly freeing all other subject peoples in Asia and Africa. ” (Harijan, July 26, 1942, CW, Vol 76, p. 311)
As one writer has put it: “Of all the Asian independence movements, the Indian movement has undoubtedly stirred the imagination of African nationalists the most. And it is not difficult to see why. First, there was the personality of Mahatma Gandhi. The message cabled by the National Council of Nigeria and the Cameroons (NCNC) on his death expressed the sentiments of all African nationalists, for whom Gandhi was the ‘bearer of the torch of liberty of oppressed peoples’ and whose life had been ‘an inspiration to colonials everywhere’.”
Gandhi maintained a 30-year correspondence with W.E.B. DuBois and they wrote for each-other's papers and movements and were instrumental in making the world's first anti-racist conference happen in the early 1910s. Gandhi also spoke quite positively of Booker T. Washington, John Tengo Jabavu, Marcus Garvey, Jomo Kenyatta, and Paul Robeson. He admired George Washington Carver and called him a genius, and the feeling was mutual. Langston Hughes followed Gandhi closely and wrote positively of him in his poetry. Gandhi was also a friend and admirer of John Dube, the first president of the African National Congress as well as S.S. Tema who he was neighbors and close friends with.
There's a ton more in these links:
Mbeki: Mahatma Gandhi Satyagraha 100th Anniversary (01/10/2006)
https://consciencism.files.wordpress.com/2016/11/freedom_race_and_francophonie_gandhi_and.pdf