People have had to look twice when passing the fountain in Castle Square, Swansea , over the last couple of days.

Social media has been flooded with theories about why the water suddenly turned purple, from it being a Stephen King film gone wrong, to a tribute to a well-known song by Prince.

However, the 'mystery' was solved when Swansea Council admitted it was behind the stunt.

Plenty of different theories have been shared online about the purple water
Swansea Council has now revealed the reason behind it

Since 2015, Swansea city centre has held a Purple Flag, one of only two cities in Wales to have the title. 

Purple Flag, a national initiative run by the Association of Town and City Management (ATCM), is awarded to places where visitors can enjoy a safe night out.

It’s a bit like the Blue Flag scheme for beaches, but for urban areas instead.

Swansea Council is hoping a night on Wind Street is named safe for the fifth consecutive year

The Purple Flag assessors were in Swansea this weekend, so the brightly-coloured fountain was timed to welcome them as they looked at the safety of Swansea’s city centre between the hours of 5pm and 5am.

Swansea Council hoped to showcase the groups that aim to ensure a safe night out in the city, including street pastors, night time rangers and taxi marshals to get people home safely.

It's not clear how long the fountain will be purple for

Councillor Robert Francis-Davies, cabinet member for investment, regeneration and tourism at Swansea Council, said: "We're very optimistic about retaining Purple Flag status though achieving this quality mark is no easy ride.

"The partnership has to prove the city centre is a vibrant and viable place, providing evidence of fresh ideas that keep visitors coming back for more as well as strategic investment in facilities and future development.

"The benefits for night-time visitors are worth the effort because the results of the team's efforts mean that great new initiatives have a chance to flourish so everyone has a great time out in a safe environment."

Over recent years, schemes have been set up to make nights out in Swansea safer, including a medical help point on The Strand and a Safe Spaces unit offering support to vulnerable people.

The visit comes as Swansea High Street has been shortlisted as one of the best high streets in the country, just months after being branded as being 'crushed by violence, gun crime, drugs and prostitution.'

Swansea will find out whether it has retained its Purple Flag status later this year.