Not all whites are racists but neither did all the colored skins deserve to be treated the way they are being treated.
As the rest of the world grows and non-white nations gain power, they will do what the whites have done with their gained power. Discriminate globally.
Whites showed the world how one can dominate others not just locally but from across the sea and how to sow the idea that they are superior.
Everybody in the world is racist, discrimination is not new to the world. The weak are always discriminated. They do not get the same opportunity as the strong get. Its the same in nature, the weak wont survive.
A few centuries back, when white nations were beginning to gain power by investing more in their military might than the rest of the world, they grew to dominate the weaker non-white nations. And to justify/explain their unprecedented power over other humans, they invented the notion of white supremacy which has become a core part of very white culture at some level or the other now after many generations of the belief that Whites are somehow superior to others.
As others gain power which could eventually surpass the one presently held by whites, they will follow a similar path to dominate their fellow weaker humans.