Stool color is generally influenced by what you eat as well as by the amount of bile — a yellow-green fluid that digests fats — in your stool. As bile travels through your digestive tract, it is chemically altered by enzymes, changing the colors from green to brown.