Phenolphthalein is a chemical compound
Chemical compound
A chemical compound is a pure chemical substance consisting of two or more different chemical elements that can be separated into simpler substances by chemical reactions. Chemical compounds have a unique and defined chemical structure; they consist of a fixed ratio of atoms that are held together...

 with the formula
Chemical formula
A chemical formula or molecular formula is a way of expressing information about the atoms that constitute a particular chemical compound....

Carbon is the chemical element with symbol C and atomic number 6. As a member of group 14 on the periodic table, it is nonmetallic and tetravalent—making four electrons available to form covalent chemical bonds...

Hydrogen is the chemical element with atomic number 1. It is represented by the symbol H. With an average atomic weight of , hydrogen is the lightest and most abundant chemical element, constituting roughly 75% of the Universe's chemical elemental mass. Stars in the main sequence are mainly...

Oxygen is the element with atomic number 8 and represented by the symbol O. Its name derives from the Greek roots ὀξύς and -γενής , because at the time of naming, it was mistakenly thought that all acids required oxygen in their composition...

4 and is often written as "HIn" or "phph" in shorthand notation. Often used in titration
Titration, also known as titrimetry, is a common laboratory method of quantitative chemical analysis that is used to determine the unknown concentration of an identified analyte. Because volume measurements play a key role in titration, it is also known as volumetric analysis. A reagent, called the...

s, it turns colorless in acid
An acid is a substance which reacts with a base. Commonly, acids can be identified as tasting sour, reacting with metals such as calcium, and bases like sodium carbonate. Aqueous acids have a pH of less than 7, where an acid of lower pH is typically stronger, and turn blue litmus paper red...

ic solutions and pink in basic
Base (chemistry)
For the term in genetics, see base A base in chemistry is a substance that can accept hydrogen ions or more generally, donate electron pairs. A soluble base is referred to as an alkali if it contains and releases hydroxide ions quantitatively...

 solutions. If the concentration of indicator is particularly strong, it can appear purple.
In strongly basic solutions, phenolphthalein's pink color undergoes a rather slow fading reaction and becomes colorless again.