Foil characters

A foil is a character who shares a situation with another but answers it differently, so each makes the other's choices stand out by contrast.

From AP English Literature and Composition.