that's awesome. I made a somewhat similar toy[0] a while ago in vanilla js (checkmark `color2nearestname` at the top). I've been meaning to try my hand at this again, but while allowing the user to choose the palette. Namely I was thinking of these definitions:
1. CSS named colors
2. Open Props' colors[1]
3. Tailwind colors
4. XKCD's color survey results[2]
A different project sent me on a deep dive into the concept of color distances and how that can work across different spaces though so I'm afraid any other color-related projects would paralyze me with feature creep at this point though haha
[1]: https://tailwindcss.com/docs/customizing-colors