In solution, 4-nitrophenol has a dissociation constant (pKa) of 7.16 at 22 °C. Solution of 4-nitrophenol alone appears colorless or pale yellow, whereas its phenolic salts tend to develop a bright yellow color. This color-changing property makes this compound useful as a pH indicator.