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.
Infant stool can have various colors and textures. Know what to expect in your newborn's diapers.