Correct option is D
The correct homonym to fill in the blank is (d) "complemented."
The sentence reads, "He was complimented for his appearance. His shirt, complemented his trousers perfectly."
In this context, "complemented" means that his shirt and trousers matched or went well together, enhancing his overall appearance.
Since, the sentence is in past tense, 2nd form of verb “complement” should be used to fill in the blank.