There is usually a red wire coming out of the regulator/rectifier that is the positive to the battery .
The orange wire from the stator (it's listed as red in your pic) in generic wiring that I've seen that is the headlight wire.
The 2 yellow wires from the stator are the 2 AC wires that go to the reg / rec. and come out of the reg/ rec as DC
The Black looks like it must be earth.
The Purple wire usually goes to the seat relay ,PTO switch ,hour meter ( some people disconnect the seat safety switch so the purple wire may be cut on your mower)