I would like to get an accurate reading of the following sentence (from the book Damals war es Friedrich):
Zu einer grünen Hose und einer roten Weste trug Polykarp eine blaue Zipfelmütze.
I am struggling with the expression etw. zu etw. tragen. Hitherto, my knowledge of zu is that it is translated as for or to, but those translations don’t seem to fit. For this sentence, my initial guess is it is close to with or in addition to, which would result in the following translation of the sentence:
Polykarp wore a blue pointed cap with a green pair of pants and a red vest.
Is my guess correct and if not, what does this expression mean?