Pairing turmeric with black pepper is popular not only for taste considerations but also because the bioactive compound piperine in black pepper helps with the absorption of turmeric's anti-oxidant properties.
Curcumin is the organic compound present in turmeric that gives it its particular golden-yellow color. It is used in food stuffs as a natural coloring agent and also in cosmetics.