{"by":"meodai","descendants":52,"id":44317291,"kids":[44337244,44335842,44343268,44336890,44337741,44336110,44337722,44337110,44335894,44335587,44336385,44338721,44338781,44335542,44337848],"score":97,"text":"I built this API to return the closest named color for any hex value—using curated lists like my own [1], XKCD [2], and others.<p>I made it from scratch without Express or any frameworks because:<p>- I’m a frontend&#x2F;interaction dev and wanted to learn how to build an API from the ground up.\n- Existing APIs didn’t guarantee unique names per color—mine does.\n- It also supports WebSocket updates, gzip responses, and multiple name sets.<p>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.<p>GitHub: <a href=\"https:&#x2F;&#x2F;github.com&#x2F;meodai&#x2F;color-name-api\">https:&#x2F;&#x2F;github.com&#x2F;meodai&#x2F;color-name-api</a><p>Would love feedback on naming logic, accuracy, performance, or backend best practices I might’ve missed.<p>[1] Large Color Name List: <a href=\"https:&#x2F;&#x2F;github.com&#x2F;meodai&#x2F;color-names\">https:&#x2F;&#x2F;github.com&#x2F;meodai&#x2F;color-names</a>\n[2] XKCD color survey results: <a href=\"https:&#x2F;&#x2F;xkcd.com&#x2F;color&#x2F;rgb&#x2F;\" rel=\"nofollow\">https:&#x2F;&#x2F;xkcd.com&#x2F;color&#x2F;rgb&#x2F;</a>","time":1750329601,"title":"Show HN: A color name API that maps hex to the closest human-readable name","type":"story","url":"https://meodai.github.io/color-name-api/"}