Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

What coordinate in the space is furthest from any named color? It looks like there are some relatively large voids in the blue/purple boundary area but it’s hard to say.


perceptual distance is quite different from Euclidean distance in this RGB space. Like if put two swaths of color side by side and said “how similar are these?” to samples of people, the groupings would not much resemble this cube.

They’ve done this! It’s shown on a “chromaticity diagram”, and is useful for comparing what colors different screens/printers/etc can reproduce. (It’s 2D not 3D cause it’s normalized for luminance or brightness.) Color science is weirdly fascinating:

https://en.wikipedia.org/wiki/Color_space?wprov=sfti1#


Here's the list of colors it works off of: https://github.com/meodai/color-names/blob/main/src/colornam...

I'm trying to figure it out.


For Euclidean distance it seems to be in the neighborhood of (59, 250, 60) which is a bright green, although of course Euclidean distance is not perceptual distance. The blue at (57, 42, 214) also is up there.


oh Id love to add this to the tooling of the color names list. How did you figure out what the largest gap was?


Pick points at random, then use a general-purpose optimization method (the optim function in R) to find local maxima. I don’t claim this is a good way to do it.


You can choose other color spaces here which is neat and helps visualize this a bit more accurately.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: