Acting upon your racist thoughts however, is not a right in every circumstance. For instance, you have the right to discriminate in your private life and associate with or not associate with whomever you wish.
You also have the right to free speech, so you can verbalize your racism if you wish. The general public however, has the right to either accept and approve of your speech or shun and ostracize you for your speech.
What you do not have the right to do, is to act on your racism in a form or format where you have control over others in a public forum. For instance, if you own a company, you do not have the right to discriminate against others in the name of and on behalf of the company.