Orpiment is a poisonous and highly toxic orange-yellow arsenic sulfide mineral. Historically, it was used as a pigment in painting and dyeing from antiquity until the 19th century, when it was replaced by less toxic colorants such as cadmium. Although its modern use is limited by its toxicity, its properties make it useful in semiconductors and pyrotechnics.