Not sure why you need this, but I think I have this.....
Yellow is +12V. That's a given.
The purple is a +5VSB that gets converted to a +12VSB . That wire should go to a little lump in your cable harness wrapped in electrical tape.
Gray is PWR Good. Green is PWR ON. Blue is -12V.
Black is ground. Always ground.
So that tiny white plastic piece doesn't use pin 1 and 2. Pin 3 is PWR ON, 4 is PWR OK, 5 and 6 are both ground.
For the black 6-pin that looks like a PCIe connector but definitely IS NOT, pin 1 (lower left pin if looking at connector with latch on top) is ground, as is pin 2. Pin 3 is -12V. I'm REALLY curious what HP uses -12V for. Pin 4 and 5 is +12V. Pin 6 is the +12VSB from the little converter in the electrical tape.
Oddly enough, there are NO sense wires used here.
EDIT: By the way, this will not fix your 515 error. The connector coming from the old PSU to the motherboard is not included in this adapter harness because a tachometer is not a normal function of a PSU fan (unless it's a digital PSU, but that's a whole other ball of wax). That was a completely separate connector from your old PSU.