Is there a term to describe something that highlights what it is not? [duplicate]

Backdrop

The attack was all the more unexpected after so many decades of peace.

Contrast

His nasty attitude was a marked contrast to the gentle demeanour of his easy-going predecessor.

Counterpart

The spicy meal was a perfect counterpart to an otherwise bland day.

Foil (for a person)

https://en.wikipedia.org/wiki/Foil_(fiction)