Racism will disappear when it’s no longer profitable, and no longer psychologically useful. And when that happens, it’ll be gone. But at the moment, people make a lot of money off of it.
Slavery was not born of racism; rather, racism was the consequence of slavery.