It depends on which way you turn the stick...
I would guess black is ground. Plug in your stick, make sure it is oriented the way it will be in the CP and plug black and one other color into your encoder (or to a multimeter) and see in which direction it closes the circuit. Write it down, and make sure you don't turn the stick 90,180, or 270 degrees when you put it in your CP.