It could be. We don't know all the details. Black people could be racist against other blacks. Plenty of white people are racist towards other white people.
Either way, the odds are, if he was white, he would end up with less of a punishment. Which implies racism.