Etsy has a fun feature for exploring products by color. You click on your favorite shade in the grid, and then items of that color pop up.
How does it work? Every listing on Etsy is associated with a HSB color value, defined by a hue value, a saturation level, and a brightness level. When you select a color, we extract its HSB value, set a maximum and minimum range around each component (color ‘wiggle’ room), and then select and show a random sample of listings whose values fall within the correct range for hue, saturation and brightness.
Check it out by moving your mouse over the grid below. Code is here.