Denying the charge or defending yourself simply digs you deeper into the hole.
What you're supposed to do is admit you're a racist, fall down on your knees, abjectly beg forgiveness of your accusers, and list all the new things you'll be doing to stop being racist.
Then your accusers have the power to forgive you. But you really, truly have to go all the way in submitting to their demands.
And they still might not forgive you. After all, you're racist scum, the lowest of the low.
It's an incredibly toxic and destructive way of handling the issue of racism.
I know I'm not a racist -- I interact with people of all races. I don't let race enter into my interactions. I sleep well at night, because I know I'm not a racist.
Defending myself against ridiculous allegations of racism is a game I refuse to play. For the good and simple reason that if you play the game, you can only lose.