When bilirubin is broken down by the liver, it produces a compound called urobilin with a potent yellow pigment. Urobilin is excreted from the body through the urine and gives it the yellow coloring.