A fine wine is a perfect complement to the dinner.
add to something to make it better or complete
or more rarely:
a quantity of something that is considered complete
A comprehensive dictionary will have more specialized definitions of complement.
Do not confuse compliment (to say something nice about someone) with this word.