I copied this from a link that somebody posted.
1984-01 Jeep Cherokee (XJ) Wiring Info.
1984 Jeep Cherokee Stereo Information
Constant 12V+ Red/White
Switched 12V+ Purple/White
Ground Black
Illumination Blue/Red
Dimmer Orange/Black
Front Speakers
Left Front (+) Gray
Left Front (-) Brown/Red
Right Front (+) White/Red
Right Front (-) Yellow
Rear Speakers
Left Rear (+) Gray/White
Left Rear (-) Brown
Right Rear (+) White/Black
Right Rear (-) Brown/White
1985-87 Jeep Cherokee Stereo Information
Constant 12V+ Red/White
Switched 12V+ Purple/Orange
Ground Black
Dimmer Orange/Black
Antenna Trigger Gray
Front Speakers
Left Front (+) Green
Left Front (-) Black/White
Right Front (+) White
Right Front (-) Black
Rear Speakers
Left Rear (+) Green/White
Left Rear (-) Brown/White
Right Rear (+) White/Black
Right Rear (-) Brown
1988-90 Jeep Cherokee Stereo Information
Constant 12V+ Pink
Switched 12V+ Purple/Orange
Ground Black
Illumination Orange/Black
Dimmer Dark Blue/White
Antenna Trigger Gray
Front Speakers
Left Front (+) Green
Left Front (-) Black/Yellow
Right Front (+) White
Right Front (-) Black
Rear Speakers
Left Rear (+) Gray/White
Left Rear (-) Brown/White
Right Rear (+) White/Black
Right Rear (-) Brown
1991-92 Jeep Cherokee Stereo Information
Constant 12V+ Red/White
Switched 12V+ Purple/White
Ground Black
Illumination Blue/Red
Dimmer Red/Black
Antenna Trigger Purple/Orange
Front Speakers
Left Front (+) Gray
Left Front (-) Yellow
Right Front (+) White/Red
Right Front (-) Brown/Red
Rear Speakers
Left Rear (+) Gray/White
Left Rear (-) Brown/White
Right Rear (+) White/Black
Right Rear (-) Brown
1993-94 Jeep Cherokee Stereo Information
Constant 12V+ Pink
Switched 12V+ Purple/White
Ground Black
Illumination Light Blue/Red
Dimmer Orange
Antenna Trigger Purple/Orange
Front Speakers
Left Front (+) Dark Green
Left Front (-) Brown/Red
Right Front (+) Purple
Right Front (-) Dark Blue/Red
Rear Speakers
Left Rear (+) Brown/Yellow
Left Rear (-) Brown/Light Blue
Right Rear (+) Dark Blue/White
Right Rear (-) Dark Blue/Orange
1995-96 Jeep Cherokee Stereo Information
Constant 12V+ Pink
Switched 12V+ Purple/White
Ground Black
Illumination Light Blue/Red
Dimmer Orange
Front Speakers
Left Front (+) Dark Green
Left Front (-) Brown/Red
Right Front (+) Purple
Right Front (-) Dark Blue/Red
Rear Speakers
Left Rear (+) Brown/Yellow
Left Rear (-) Brown/Light Blue
Right Rear (+) Dark Blue/White
Right Rear (-) Dark Blue/Orange
1997-01 Jeep Cherokee Stereo Information
Constant 12V+ Pink/Yellow
Switched 12V+ Red/White
Ground Black
Illumination Orange/Brown
Dimmer Black/Light Blue
Front Speakers
Left Front (+) Dark Green
Left Front (-) Brown/Red
Right Front (+) Purple
Right Front (-) Dark Blue/Red
Rear Speakers
Left Rear (+) Brown/Yellow
Left Rear (-) Brown/Light Blue
Right Rear (+) Dark Blue/White
Right Rear (-) Dark Blue/Orange