what is the range of RGB for a specific colour?

Khurram Shahzad picture Khurram Shahzad · Aug 9, 2016 · Viewed 10.3k times · Source

I want to find specific colours in a image generally red green blue orange white black maroon etc. But there are alot of colors in a image. RGB has 256x256x256 range. The problem is I do not have any idea that what range of RGBs Combinations makes any specific colour. For Example, if I want to find black color I can try finding the pixels with RGB range within this [0, 0, 0], [10, 10, 10]. Any idea or trick ?

Answer

P.Carlino picture P.Carlino · Aug 9, 2016

In this page you can find the differents gradations of primary colors. I suggest you to use this value to set the minimum and the maximum value of red, green, blue which you can use to do what you want. Page link