The ideal soil pH for growing hydrangeas is between 5.2 and 5.5 for blue or purple flowers, and between 6.0 and 6.2 for pink flowers. Hydrangeas can tolerate slightly acidic to neutral soil, but extreme alkalinity can prevent the plants from absorbing nutrients effectively.