So I have used this simple PHP script to get one main colour out of an image. https://stackoverflow.com/a/36321726/7278089
The highlighted number is the hex but without a # in front.
I want our platform to be able to filter on colors but when a user is creating a post it will search for the one main colour in his image and then save it into the DB. But here is the thing that I'm searching for I don't want to save away for example #0d66ac which is blue. I just want it to insert into the table as color=blue;