Going to point out that your language is ambiguous. What does "being racist" actually mean in the context of what you think should be disallowed?
It's an important question, because odds are very good that if you think through a real example of what you think ought to be criminal, there's a good chance there's already some other law that's already being broken, such as harassment. Of course, one consequence of this is that the censorious types have been diluting the term "harassment" to mean "anything anyone says that makes me feel uncomfortable." (Twitter is rife with this ridiculousness). But I digress. The fact is, harassment laws exist to protect people against the abuse of speech in public places, and there's no need for any particular special groups to have protection.
Here's some sample language:
He or she engages in a course of conduct or repeatedly commits acts which alarm or seriously annoy such other person and which serve no legitimate purpose.