This is what I have for a 2013 Mazda 6. You'll need to test and compare.
2013 MAZDA 6 4DR SEDAN WITH 3.7L ENGINE AND 6-SPEAKER STANDARD AUDIO SYSTEM
Audio/Mobile Video
WIRE COLOR POLARITY LOCATION
Battery ORANGE / BLACK (+) RADIO HARNESS
Accessory BLUE/BLACK (+) RADIO HARNESS
Ground BLACK (-) RADIO HARNESS
LF Speaker (+) WHITE/ BLACK
THESE WIRES ALSO GO TO THE FRONT LEFT TWEETER
LF Speaker (-) GRAY/BLACK
RF Speaker (+) WHITE/ RED
THESE WIRES ALSO GO TO THE FRONT RIGHT TWEETER
RF Speaker (-) GRAY/RED
LR Speaker (+) WHITE/ VIOLET
LR Speaker (-) GRAY/WHITE
RR Speaker (+) WHITE
RR Speaker (-) GRAY
Amp Location SEE BOSE TRIM FOR AMPLIFIER INFORMATION
Steering Cntrls YES
Speed Cntrl YES
Security
WIRE COLOR POLARITY LOCATION
Battery RED / BLUE & RED / BLACK (+) IGNITION SWITCH HARNESS
EACH OF THESE WIRES ARE FUSED AT 40 AMPS
Ignition 1 GREEN/ YELLOW (+) IGNITION SWITCH HARNESS
Starter 1 GRAY/RED (+) IGNITION SWITCH HARNESS
All Door Trigger BLACK/ BLUE (-) AT BCM MODULE
THIS IS THE DOMELIGHT SUPERVISION WIRE, TO AVOID DOMELIGHT DELAY USE INDIVIDUAL DOOR TRIGGERS AND DOIDE ISOLATE EACH WIRE
Domelight Super BLACK/ BLUE (-) AT BCM MODULE
LF Latch BLACK / YELLOW (OPEN) AT BCM MODULE
RF Latch BLACK/ BLUE (OPEN) AT BCM MODULE
LR Latch BLACK / YELLOW (OPEN) AT BCM MODULE
RR Latch BLACK/ RED (OPEN) AT BCM MODULE
Trunk Trigger BLACK/ BLUE (-) AT BCM MODULE
Hood Trigger WHITE (OPEN) AT BCM MODULE
Alarm Disarm BLACK (-) AT BCM MODULE
USE STRAIGHT (-) TRIGGER FOR FACTORY ALARM DISARM, SAME WIRE AS ARM
Alarm Arm BLACK (-) AT BCM MODULE
USE 1K OHM RESISTOR FOR FACTORY ALARM ARM, SAME WIRE AS DISARM
Parking Lights RED / BLUE (+) AT BCM MODULE
Low Crr Pk Lights BLACK/ WHITE (-) VEHICLE LIGHT SWITCH
Convenience
WIRE COLOR POLARITY LOCATION
Headlights-Lo BLACK/ GREEN (-) VEHICLE LIGHT SWITCH
All Hazrd Lights BLACK/ ORANGE (-) AT BCM MODULE
Parking Brake BLACK/ RED (-) PARKING BRAKE SWITCH
Trnk Release BLACK/ RED (-) AT BCM MODULE
Seat Mem 1 GRAY/VIOLET (-) DRIVER SEAT MEMORY SWITCH
Seat Mem 2 YELLOW (-) DRIVER SEAT MEMORY SWITCH
Remote Start
WIRE COLOR POLARITY LOCATION
Battery RED / BLUE & RED / BLACK (+) IGNITION SWITCH HARNESS
EACH OF THESE WIRES ARE FUSED AT 40 AMPS
Ignition 1 GREEN/ YELLOW (+) IGNITION SWITCH HARNESS
Accessory 1 PINK / YELLOW (+) IGNITION SWITCH HARNESS
Accessory 2 YELLOW (+) IGNITION SWITCH HARNESS
Starter 1 GRAY/RED (+) IGNITION SWITCH HARNESS
Anti-Theft Type UNIVERSAL IMMOBILIZER
Anti-Theft Descript THE KEY SENDS AN RF SIGNAL TO THE BCM MODULE THROUGH AN ANTENNA LOCATED AROUND THE IGNITION CYLINDER
Key Sense RED / BLACK (+) AT BCM MODULE
Parking Lights RED / BLUE (+) AT BCM MODULE
Low Crr. Pk Lights BLACK/ WHITE (-) VEHICLE LIGHT SWITCH
Brake Lights RED / WHITE (+) SWITCH ABOVE BRAKE PEDAL
Reverse Lights GREEN/ BLACK (+) AT BCM MODULE
Horn BLACK (-) AT BCM MODULE
Rear Defrost RED (-) AT A/C CONTROL UNIT
Modules
WIRE LOCATION
Module 1 BCM - DRIVER KICKPANEL
Module 2 PCM - DRIVER SIDE FIREWALL
Doorlocks/Windows
WIRE COLOR POLARITY LOCATION
Power Unlock BLACK/ WHITE (-) AT BCM MODULE
USE STRAIGHT (-) FOR UNLOCK, SAME WIRE FOR LOCK
PowerLock BLACK/ WHITE (-) AT BCM MODULE
USE 1K OHM RESISTOR FOR LOCK, SAME WIRE FOR UNLOCK
LF Window Up YELLOW/BLACK (REV) DRIVER WINDOW SWITCH
LF Window Dn WHITE/ GREEN (REV) DRIVER WINDOW SWITCH
RF Window Up YELLOW/BLACK (REV) PASSENGER WINDOW SWITCH
RF Window Dn WHITE/ GREEN (REV) PASSENGER WINDOW SWITCH
LR Window Up BLUE/WHITE (REV) DRIVER WINDOW SWITCH
LR Window Dn VIOLET (REV) DRIVER WINDOW SWITCH
RR Window Up BLUE (REV) DRIVER WINDOW SWITCH
RR Window Dn PINK/BLUE (REV) DRIVER WINDOW SWITCH