← Back to context

Comment by dotspencer

2 days ago

I pulled out the RGB values from the solid color areas of the swatch images on the manufacturers' websites for each of the colors.

It's definitely just an approximation of the real-world color, but I figured that if that's the RGB value the manufacturer used, it's probably pretty close.

Then I calculate the euclidean distance between the RGB value from the provided hex and each of the paints, and show the two closest matches from each brand.