Dishwasher water assembly valve

I am replacing a water valve assembly. Need to know for sure color of wires go to where. New valve is a little different but will work. Green is obviously ground, have to purple or red wires, which goes where or does it matter?

It does not matter.

Gene.