On my starter, I have a purple wire a yellow wire and a red wire, how do I hook them up?

The red wire connects to the battery (large) terminal on starter solenoid.
The purple wire connects to the “S” terminal on the solenoid.
The yellow wire connects to the “R” terminal on the solenoid.