Is calling someone racist a personal attack?

An

Or is it more like identifying someone based on their beliefs?

For example, if someone explains that they don’t believe God exists, you might say “you’re an atheist.” If someone expresses racists beliefs, is it appropriate to say “you’re a racist” or is that a personal attack?