I made it from scratch without Express or any frameworks because:
- I’m a frontend/interaction dev and wanted to learn how to build an API from the ground up. - Existing APIs didn’t guarantee unique names per color—mine does. - It also supports WebSocket updates, gzip responses, and multiple name sets.
I’ve been collecting color names for over 10 years [1]. With ~30,000 entries, bundling them into every color-related project became excessive. This API keeps things lightweight—for me and hopefully for others too.
GitHub: https://github.com/meodai/color-name-api
Would love feedback on naming logic, accuracy, performance, or backend best practices I might’ve missed.
[1] Large Color Name List: https://github.com/meodai/color-names [2] XKCD color survey results: https://xkcd.com/color/rgb/
I do have to ask, though. Why would I ever want to resolve a color name as a network request instead of calling a function?
[0] https://colorguesser.com/ [1] https://x.com/wifeofnoob/status/1935788167086436375
edit: I get the same 5 colors every time?
> Fun! If I may make one suggestion, could you please show the color I picked next to the real one once it is revealed? The color of the color-name changes to what you picked.
Lilac Rose
Your score
81/100
First try!
My final score was 286/500 :(
At any rate, it keeps using the same colors, so this needs to be improved.
I remember there were a couple of websites like this, however, with random colors, better scoring, etc.
For example I found these:
https://color.method.ac
https://hexcodle.com (this one has a 10 hour limit per game, ugh)
But there were many others. Ideas? I am looking for something like colorguesser.com.
The slight problem with this is that I don't like having to escape the '#' character for colours. I prefer the nearest name, e.g. 'Chocolate' (which is orange).
Hence I have bookmarked this page.
One observation, I have now moved to oklch for everything else. I only do named colours and oklch, hex codes have gone the way of CMYK for me.
Are there any plans to make this tool oklch-friendly?
https://news.ycombinator.com/topcolors
https://en.wikipedia.org/wiki/International_orange
Cool project! I wonder what commercial use cases come from it. On the My First Million podcast they talked a about a company selling color predictions to brands for multiple six figures. Maybe you can find correlations and predictions in the data one day.
I think it would be effective on the landing page to have a form where I can enter a hex code and get the color name. I've recently tried a couple of web apps like this to get makes for my brand colors.
But how useful are names that this website shows, e.g. the first few random names I got were "Singapore Orchid", "Scented Spring", "Lamiaceae", and "Lunatic Sky Dancer"?
https://unblind.tech
Also, the API works the other way around too – you can search by name to get the matching color: https://api.color.pizza/v1/docs/#api-Default-getColorNames. I did not add it to the website yet, because I don't have good UI ideas for it yet.
Also, I think adding a kind of ‘main color’ would be useful. For example ‘shore’ being in the category ‘blue’ or maybe even ‘light blue’. Because for ‘shore’ itself I personally would associate with sand and maybe yellow.
Like here:
https://farbvelo.elastiq.ch/ or https://meodai.github.io/poline/
Thanks a lot for the feedback, I really appreciate it!