A
A
ak_wi2019-03-04 15:18:29
Working with color
ak_wi, 2019-03-04 15:18:29

In what format is it more accurate to compare two colors for similarity?

Task: there is a color in RGB or HEX, you can always convert it to another.
You need to compare it with a set of colors and show which color it is closer to. How to do it more precisely?
Through HSV or RGB difference comparison?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
IvAnHV, 2019-03-04
@IvAnHV

if you just need to compare color number 1 and color number 2 and get true or false as a result, then it doesn’t matter, but if you need to calculate the nearest color, it’s much more convenient using HSV.

S
SagePtr, 2019-03-05
@SagePtr

Depends on similarity criteria. But it is better to compare by HSV, with different weights of HS and V (then, for example, V can be taken into account the least, and light red will be more similar to dark red than light red to light orange)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question