• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2308
  • Last Modified:

Closest Color Matching Algorithm

I'm looking for a way to best match a color to a list of colors for closest match weighted to the visible eye.

Weight might be something like:
30% Red, 60% Green, 10% Blue

Would it be better for me to match on RGB or HSL?  What are the best methods you know of to accomplish this task?
0
collages
Asked:
collages
  • 2
1 Solution
 
Meir RivkinFull stack Software EngineerCommented:
here's your solution:
Best algorithm for matching colours
0
 
Meir RivkinFull stack Software EngineerCommented:
there are 2 alternatives in the post:
1. using CIE Lab color space
2. RGB to HSL conversion (simpler)
0
 
collagesAuthor Commented:
Thank you very much.  Great answer.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now