Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
4

How to find specific Grayscale or RGB value in the image?

Explorer ,
Feb 02, 2024 Feb 02, 2024

Hi, is it possible to find specific RGB value in the image in photoshop? For example I have an image with lots of differently colored rectangles and I need to find (select) the one that has specific [R:30 G:30 B:30] color. Is it possible? Thanks!

TOPICS
Windows
8.4K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 2 Correct answers

Community Expert , Feb 02, 2024 Feb 02, 2024

If you have your desired color set as the Foreground Color, open Select > Color Range, and set the Fuzziness slider to zero. Now, click on the Foreground Color swatch in the toolbar, and it will select that color.

Translate
Community Expert , Feb 02, 2024 Feb 02, 2024

Another option is to use Image > Adjustments > Threshold and type in a value of 31 to help visually isolate a value of 30r30g30b.

 

threshold.gif

Translate
Adobe
Engaged ,
Feb 02, 2024 Feb 02, 2024

1) On the left side panel select the eyedropper tool/click in the rectangle for which you want the value/On the right side panel click the Color Tab/select the three vertical lines and select RGB sliders.  The RGB numerical settings are displayed.
2) move to the next rectangle and click with eyedropper tool and its values are displayed

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 02, 2024 Feb 02, 2024

Hey thanks for reply, but I meant smth different, I do know the RGB values I want to find, I just don't know where they are exactly (which colored ectangle exactly has this color) because there are let's say thousands of these rectangles in my image. So I need a way to find and select those areas in my image which contain that specific RGB color I'm looking for. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 02, 2024 Feb 02, 2024

@Defonten – Does this need to be automated? If so, please provide a screenshot of the document content with the layers panel visible.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 02, 2024 Feb 02, 2024

Here you go - I need to find and select areas in this image that contain let's say value 73. 

Defonten_0-1706931446622.png

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 02, 2024 Feb 02, 2024

Here's the method I described on the image you provided. I got the Foreground Color using the swatch in your Color panel:

color range.png

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 02, 2024 Feb 02, 2024
LATEST

So it's a flattened image. OK.

 

After using the Threshold method as I described, you can then use Selcect > Color Range with Sampled Colors and click on the area identified when using Threshold as a "live preview".

 

Another method would be to dupe the Background layer and use the layer option Blend If sliders to isolate the luminosity range of the RGB value.

 

2024-02-03_14-53-10.png

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 02, 2024 Feb 02, 2024

If you have your desired color set as the Foreground Color, open Select > Color Range, and set the Fuzziness slider to zero. Now, click on the Foreground Color swatch in the toolbar, and it will select that color.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 02, 2024 Feb 02, 2024

This did the trick thanks a lot!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 02, 2024 Feb 02, 2024

Another option is to use Image > Adjustments > Threshold and type in a value of 31 to help visually isolate a value of 30r30g30b.

 

threshold.gif

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 02, 2024 Feb 02, 2024

Fantastic! This is also a great way of doing it! Thank you very much!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines