Tear stains are visible when a dog produces too many tears. Dog’s tears contain a chemical called porphyrins and when they land on white fur they cause it to turn reddy-brown. The color comes from the iron in the porphyrins and it gets darker when sunlight shines on it.
Additionally, excessive bacterial and yeast growth in the moist conditions caused by excessive tears are also thought to play a role.