Remix.run Logo
phdelightful 3 days ago

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.

turtletontine 3 days ago | parent | next [-]

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#

madcaptenor 3 days ago | parent | prev | next [-]

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.

madcaptenor 3 days ago | parent [-]

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.

meodai 3 days ago | parent [-]

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

madcaptenor 2 days ago | parent [-]

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.

adzm 3 days ago | parent | prev [-]

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