A bilirubin test measures bilirubin levels in your blood. Bilirubin is the yellow pigment in bile. You might have high bilirubin levels if your liver is having trouble processing bilirubin into bile, or if your bile ducts are blocked.