Jaundice is caused by bilirubin which is a yellow colored substance responsible for the yellow color of the skin and sclerae.
Bilirubin:
Bilirubin is a waste product which remains in the bloodstream after iron is removed from hemoglobin in red blood cells. When the bilirubin increases in the body, it can leak out into adjacent tissues, saturating them with this yellow substance.
https://www.qries.com/What-are-the-symptoms-of-jaundice/answer/Daneel-Yunus