The yellow color comes from bilirubin, a pigment in bile produced by red blood cells. Normally this pigment is excreted, but if too much bilirubin is produced or if the dog's body can't excrete it fast enough, there is an accumulation that results in jaundice. Many conditions can affect this process in dogs.