Question here, how do you put a name on the hex? Do you have a database that map each hex code to "limelight", "grey asparagus", etc ?
Hope that answers your question!
https://blog.xkcd.com/2010/05/03/color-survey-results/
It took colourblindness into account.
I kinda hope that was a genuinely curious question and not an arrogant rhetoric one.
for something like a meaningful name for a colour requires far more learning, data and context than is reasonable...
_, result = min([(sqrt((i.R - c.R)^2 + (i.G - c.R)^2 + (i.B - c.B)^2), c) for c in colors])
and you're done.Why would you want a computer to come up with color names anyway? They're identifiers, so you want them to be consistent. What if it comes up with names like Piss or Ennui? Why go through that trouble?