1

I have a layer of color Red. It is a little transparent. I want to find actual RGBA value of it. The opacity is in percentage an I want the hex value of it. Is there any way, thanks.

2 Answers 2

2

If you have a background layer or any layers underneath the colour you wish to sample, hide them in the layers panel by unchecking the Eye icon, so that you can see the transparency grid through the colour. You can unhide them later.

  1. Do Windows > Dockable dialogs > Sample points

  2. Hold down Ctrl and click and drag from the ruler to drop a sample point on the colour you wish to sample.

  3. The RGBA values will be displayed in the Sample Points Panel.

Example

enter image description here

Convert the decimal numbers to hexadecimal using an online converter. For example the above sampled values would be #ff00006d

4
  • I am not used to using alpha values on hexadecimal notation. This is a good reminder that can be done.
    – Rafael
    Jan 13, 2022 at 12:19
  • @Rafael - yeah, I sometimes use the full RGBa hex code in Inkscape where you can type it directly into the fill/stroke dialog.
    – Billy Kerr
    Jan 13, 2022 at 12:33
  • @Rafael and obviously in SVGs, where e.g: style="fill:#ff00006d" is valid.
    – Billy Kerr
    Jan 13, 2022 at 12:45
  • Thank you, it helped me alot.
    – Al-Jaabir
    Jan 14, 2022 at 10:24
0

Use the pointer dialog (Windows > Dockable dialog > Pointer). It will show you the pixel value (in many forms, RGBA, RGBA as percent.., HSV...) and with the hex notation, at the pointer position, for the active layer or for the whole image ("Sample merged" option).

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.