Bilirubin is an orange-yellow pigment, a waste product primarily produced by the normal breakdown of heme, a substance found mainly in the protein hemoglobin in red blood cells (RBCs). It is ultimately processed by the liver to allow its elimination from the body. This test measures the amount of bilirubin in the blood in order to evaluate liver function or to help diagnose anemia caused by the increased destruction of RBCs (hemolytic anemia).