Phenolphthalein and phenolsulfonphthalein (phenol red) are not the same but are very similar. Most of their molecules are identical, except for a small group that dangles off the sides of the main structure. Even the reasons for the color changes with pH are the same.