prejudice, discrimination, or antagonism by an individual, community, or institution against a person or people on the basis of their membership of a particular racial or ethnic group, typically one that is a minority or marginalized.
What you are looking for is
Xenophobia or fear of strangers is the fear or hatred of people who are perceived as being different from oneself. This can be based on a person's race, ethnicity, nationality, religion, or other distinguishing characteristics.