Either - it doesn't matter.
Simply connect them up and if the motor spins the other way to what you want it to just swap any two wires around - job done.
They are completely interchangable and wire color does not matter.
The only issue would be if they were threaded shafts