red, green, yellow, blue.

To me, the wiring seems okay, just need to "flip it" so the red wire is on first PIN. First PIN is the first on the left if you look at the board with the power input/output to the left.

edit: http://reprap.org/wiki/RAMPS_1.4#Wiring