Sometimes you can find vehicle specific wiring at brand/vehicle forums. Otherwise the easy way is to buy the wiring harness for that vehicle. The wiring harness will plug into your factory plug and the wiring color should match up to the wires coming out of the new headunit. Best buy carries these harnesses or you can order online at many places.
Like this, make sure the plugs look the same.