What is the best algorithm for finding the closest color in an array to another color? [closed]

Rather than using RGB, try using an HSL (Hue, Saturation, Lightness) or HSV (Hue, Saturation and Value) color model. Then experiment with different elements of bias, e.g. hue being more important than luminance when you’re calculating the distance.

Leave a Comment