I think the yellow wire is the one directly connected to the 12V(+)
The red wire is the one connected to the ACC.

So you must find the wire where it supplies 12V(+) when you turn the key to Acc

You can use this link for reference: Wiring diagram for Pioneer KEH-2650