Hydrangea macrophylla, ones with pink and blue ones, are affected by the pH of the soil. A pH below 6 is best for blue flowers; above 6 encourages pink ones. Adding Epsom salts to your plant increases the amount of magnesium in the soil.