Wiring for replacement Capacitor

Replacing capacitor on ceiling fan and the wires colors on the light kit that the capacitor connectors to are green(1), brown (1), grey (2), and red(1). The capacitor wire colors are grey (2), red(1), purple (1), and brown (1). What wires do I connector together?

Block Image
Block Image
crwdns2934089:0crwdne2934089:0 crwdns2934093:0crwdne2934093:0

crwdns2934109:0crwdne2934109:0

crwdns2889612:0crwdne2889612:0 0
crwdns2934285:0crwdne2934285:0