It's usually called "prejudice" or "discrimination":
Prejudice is an irrational feeling of dislike for a person or group of persons, usually based on stereotype. Virtually everyone feels some sort of prejudice, whether it's for an ethnic group, or for a religious group, or for a type of person...