Bilirubin is a yellow pigment that’s in everyone’s blood and stool. A bilirubin blood test determines the levels of bilirubin in the body. Sometimes the liver can’t process the bilirubin in the body.