If despite your best efforts, nobody accepts you, and some even make openly racist remarks towards you, then you ring that bell.
I agree that no one should assume racism right out of the gate. I admit to being guilty of this action before. The line between cliques facing inward and people snubbing you due to race is absurdly blurry. It doesn't help when the entire group happens to be white. Then you start this internal dialogue trying to get to the bottom.
Are these guys just really clique-ish to the point where everyone else is an outcast? Am I doing that weird thing where I have a scowl on my face all day? Did I say something that was misconstrued? Are they just racist pricks? Wait, am I just an asshole?
This isn't to say that all who socialize with you are racist. I think your last line is a very important consideration in moments of self-reflection.
Except there is clear evidence that unconscious bias exist. To test your own you can try some of the tests as part of ProjectImplicit (https://implicit.harvard.edu/implicit/) Pretending it does not exist is not really helpful advice.
Trenchant observation. I am largely a misanthrope and my wife often points out scenarios where I'm coming across as racist/sexist/discriminatory when the reality is that I'm generally not interested in interacting with people.
Being the middle aged "ethnic white" in the Northeast I am not only submissive to cops, but I look like them -- none of my family are college professors but a lot of them work in various branches of law enforcement.
I know their point of view is not the only point of view, but I understand it enough that I come across as somebody who understands their point of view so I have a hard time getting tickets and usually get off with a warning.
For instance I was speeding in a residential zone and the officer got a clear picture of somebody who wouldn't like people driving fast in his residential neighborhood, not somebody who has a favorite residential neighborhood to practice Japanese street racing.