It occurs most commonly where tears moisten the fur around the dog's eyes or around their mouth where saliva wets their fur as well as where they lick their feet and forelegs.
This discoloration is caused by a chemical called porphyrin.
One of the best-known porphyrins is heme, the pigment in red blood cells.