Answer:
Foil character
Step-by-step explanation:
Commonly used to highlight and contrast the features of the protagonist, a foil character presents traits that are opposite to the ones of the protagonist, creating relevant parallelism between the two. A foil character can also be an antagonist, but that is not always the case.
An example of a foil character would be: From the Harry Potter series, Draco Malfoy, whose traits vastly differs from Harry Potter's.