# "An integer between 0 and 255 is required" when I change the value in RGB picker

So, I get this message in Photoshop when I try to insert values above 256 in RGB color picker menu, although I switched to 16 bits (image -> mode -> 16 bits per chanel). Why is that? Isn't 16 bits supposed to give me 65.536 colors per channel in theory?

16- bit is only used for internal calculations. What you actually see on your monitor is in 8-bit. Thus, when you select a color based on the image displayed by your monitor, the maximum value is 255.

• Why would I see in 8 bit if my monitor has a 32bit color range enabled? Mar 2, 2020 at 17:56
• @MarkoSavic a 32 bit monitor uses 8 bits for each of the 3 main color channels and an 8 bit alpha channel to (theoretically) help with accuracy. So 4x8bits = 32bits. It doesn't mean you get 32 bits per channel. Mar 2, 2020 at 20:01

The internally used values are 16 bit. The GUI uses only the 8 bit values, though. You can see that also in levels, curves, etc.

Still, when you enter 255, in reality this gets converted to 65535 (or at least some value >65280, i don't know their exact algorithm).

Yes, this means that only 256 of those 64k colours are directly numerically accessible for you. You can complain at Adobe...

The RGB colors are always 0-255 per channel... which is over 16 million colors and more than a human can discern. What those values mean depends on the color space... i.e. 0,255,25 in sRGB is the same color as 138,236,80 in ProPhoto.

16bit gives the potential for 65,563 tonal values... which is rather useless. The main benefit of using 16bit (or even 32bit floating point) is greater mathematical accuracy.

Edit to add: You can set the info panel to read out the colors in 16bit by clicking on the RGB eye dropper in that panel. But that's the only place where it will tell you what is really going on.

• RGB is not always 8-bits per channel. It is possible to have 10-bit channel monitors along with graphics cards to support them, although it's not yet common. Mar 2, 2020 at 4:44
• Of course, the real issue of the question is that many of the software tools we use (like the Photoshop color picker) only support 8-bit RGB color. Also the web browsers that might use that RGB value only support 8-bit RGB color. Mar 2, 2020 at 17:56