Phenolphthalein is a chemical compound with the formula C20H14O4 and is often written as "HIn" or "phph" in shorthand notation. Phenolphthalein is often used as an indicator in acid–base titrations. For this application, it turns colorless in acidic solutions and pink in basic solutions. It belongs to the class of dyes known as phthalein dyes.