Skip to main content
Tina-Soulelle
Participating Frequently
July 13, 2020
解決済み

Where can I find the hex code in Photoshop 2020?

  • July 13, 2020
  • 返信数 2.
  • 39904 ビュー

In the Photoshop 2020 this lovely hex code in the bottom has disappear and I wonder why? I really need this  when I'm working with the color.

I have only RGB code and before I also have hex code in the bottom to see the right color. I am working with color in Photoshop and find this disappointment when hex code disappear. Can I search or in the settings area find a way where I can show hex code again?

解決に役立った回答 davescm

@ktgilead If you are working in an 8 bit/channel or 16 bit/channel document, use the eyedropper tool to get the color picker and read off the hex code. That is it.

Be aware though, that the hex code you read is dependant on the colour profile of your document. The same colour will have different Hex codes in sRGB, AdobeRGB, ProPhoto etc  When using a Hex code for entry elsewhere you really need to know which profile the entry field expects the Hex codes to be referenced to. Most, incorrectly, do not specify that reference profile, and just assume it will be referenced to sRGB. In that case make sure your document is also in sRGB (use Convert to profile if it is not) before reading the code.

 

Dave

返信数 2

D Fosse
Community Expert
Community Expert
July 13, 2020

Yes, Dave is right. Hex code is a bad habit, a leftover from the old days before modern color management was invented. It will not give you accurate color unless you also specify a color space like sRGB, Adobe RGB etc.

 

It wasn't any more accurate back then, but as long as everyone stayed within an sRGB environment, using CRT monitors, it would at least be ballpark. It still is, but you can't even think about any other color space than sRGB. Then the numbers go off the map.

 

My theory is that hex gained widespread use because it looks geekish and computer-like, so it gives a sense of "precision". Which is utterly false. As Dave says, it's just base 16 RGB numbers.

jane-e
Community Expert
Community Expert
May 6, 2021

@D Fosse wrote:

Hex code is a bad habit, a leftover from the old days before modern color management was invented.


 

I remember when Adobe first added hexadecimal codes to Photoshop. I'm thinking PS6, but I could be wrong. In those days, web colors had to either be one of a limited number of words (red, teal, violet...) or it had to be in hex. Before PS had a text box for the hex codes, we had to go to the web, get the codes for the color, and then put the number into Notepad where we were typing the HTML code line by line.

 

This was in the days of 256 colors on monitors, 216 of which were the same on both PCs and Macs. 

 

Things change over the years. Monitors display more colors; we have color management, and there are more ways to input colors when creating XHTML.

 

This is from https://www.w3schools.com/html/html_colors.asp 

"HTML colors are specified with predefined color names, or with RGB, HEX, HSL, RGBA, or HSLA values."

 

 

 


@davescm wrote:

Actually Hex codes without the context of a particular color space are meaningless anyway and should be dropped from all color pickers.

 

I vividly remember being thrilled when hex first showed up in the color pickers! It made our web work so much easier! All the same, in my opinion its useful life is long since over and I don't remember when I last used it.

 

On the other hand, if Adobe were to drop hex from the color pickers, how many angry folks do you think we would hear from who still use an outdated workflow? And remember that W3Schools includes hex.

 

I don't think it can be dropped.

 

~ Jane

davescm
Community Expert
Community Expert
March 4, 2022

Thanks for this response, Jane. I'm using Photoshop to find hex codes from images specifically for a CSS tool I need to use for my job. 
Hex certainly isn't best, but some of us are stuck using it.


Just to re-iterate, it is not the use of Hexadecimal that is an issue. The issue only lies in thinking that Hex defines a colour more accurately than the equivalent RGB decimal numbers. Both only represent a specific colour when referenced to a specific colour space. So if your website expects Hex referenced to sRGB then you need to sample the image colours in sRGB. If the colour spaces do not match then you will see a shift of colour when using the Hex codes, just as you would using RGB decimal numbers.

Dave

davescm
Community Expert
Community Expert
July 13, 2020

Are you working in 8 bit or 16 bits/channel ?

If you are in 32 bit linear then a different colour picker is used and hex codes would be completely meaningless* in such a colour space.

 

* Actually Hex codes without the context of a particular color space are meaningless anyway and should be dropped from all color pickers. They are just RGB numbers in base16 and do not describe a particular colour unless they are accompanied by "in xxxxx color space"

 

 

Dave

Tina-Soulelle
Tina-Soulelle作成者
Participating Frequently
July 13, 2020

Thank you for replaying Dave! And also of what you think here about the ability of hex code. Thank you once again.