Bile salts break up fat and bilirubin gives bile and stool a yellowish color. If the liquid bile contains too much cholesterol, bile salts or bilirubin, under certain conditions it can harden into stones.