Is there an easy way to compare how close two colors are to each other?

You probably want to convert the colors to an HSL model (Hue, Saturation, Lightness) and then compare the values within thresholds in the order HSL. If the hue is within a tolerance deemed as “close”, then check the “closeness” of the saturation, and then the lightness.

Leave a Comment