Compliment and complement are commonly confused terms because they’re pronounced alike and originally shared some meanings. But over time, they’ve become separate words with entirely different definitions.
A 'complement' is something that completes something else in some way. A 'compliment' is a courteous remark that expresses admiration.