Sometimes the Power Supply decides to use their own colors(OLD Power Supplies) but all the newer power supplies have the same color coding.
And yes, Yellow is 12v, while red is 5v, the blacks are all just grounds, so it doesnt matter which ground you use.
Your Power supply should have a label describing each color and its function, id double check that label if you are unsure and dont have a volt meter.