Why did my hydrangea change colour?
Because the colour of a mophead or lacecap hydrangea is set by soil chemistry rather than by the variety alone, and something about your soil has shifted.
The mechanism is aluminium. Blue pigment forms when aluminium ions are taken up by the plant and bind to the pigment molecules in the flower. Aluminium is present in most soils but is only soluble enough for roots to absorb it when the soil is acidic — below roughly pH 5.5. In alkaline soil the aluminium locks up in forms the plant cannot use, and the same flowers come out pink. Between those extremes you get muddled purples and blues and pinks on the same shrub.
So a plant that was blue in the nursery pot and turned pink in your garden has not changed variety. It was grown in an acidic, aluminium-rich compost and has now been planted in more alkaline ground. The reverse happens too, particularly where rainwater from a limestone roof or mortar leaching from a nearby wall raises the pH over time.
Two important limits. White hydrangeas have no pigment to shift and stay white regardless of soil. And paniculata and quercifolia types do not respond to pH at all — only the macrophylla group does.
Changing colour deliberately is slow and partial. To push toward blue, lower the pH with ericaceous compost, sulphur chips or a proprietary hydrangea colourant containing aluminium sulphate, applied over a full season. To push toward pink, add garden lime. Growing in a container gives far more control than trying to alter open ground, where the surrounding soil constantly re-asserts itself.