The color of pipe used for a main water line depends on the local building code. In the United States, the most common colors used are blue, black, yellow, or red.