Foil (narrative)
In any narrative, a foil is a character who contrasts with another character, typically, a character who contrasts with the protagonist, in order to better highlight or differentiate certain qualities of the protagonist. A foil to the protagonist may also be the antagonist of the plot.