Skip to Content

What are the RGB settings for grey?

What are the RGB settings for grey?

Grey is a neutral color that lies between black and white on the color spectrum. In the RGB color model, which is used for digital displays and image editing programs, grey is made by mixing red, green and blue light. The specific ratio of RGB values needed to make different shades of grey depends on the color depth and encoding used. Here is a quick overview of the most common RGB values used to represent grey.

The RGB Color Model

The RGB color model is based on the additive mixture of red, green and blue light. By combining different intensities of these three primary colors, a wide gamut of colors can be reproduced. RGB values are generally specified on a scale from 0 to 255, where 0 indicates no color intensity and 255 indicates maximum intensity. This allows for 256 different possible values for each R, G and B component.

To make grey in RGB, the values for R, G and B need to be equal. If R, G and B are all 0, the result is black. If they are all 255, the result is white. By setting R, G and B to intermediate equal values between 0 and 255, different shades of grey are produced.

Common RGB Values for Grey

Here are some of the most common RGB values used to represent shades of grey from black to white:

Greyscale RGB Values
Black R=0, G=0, B=0
Dark grey R=64, G=64, B=64
Medium grey R=128, G=128, B=128
Light grey R=192, G=192, B=192
White R=255, G=255, B=255

As you can see, equal RGB values between 0-255 are used to create grey colors. Black is achieved with all values at 0 intensity, and white results from all values set to full 255 intensity.

8-bit vs. High Color Depth Greyscale

The specific RGB values that represent certain shades of grey will vary based on the bit depth used. Here is how 8-bit and high color depth systems differ for grey:

8-bit RGB Greyscale

In an 8-bit RGB system, each color channel has 28 or 256 possible values. This means R, G and B can each range from 0 to 255. Some common 8-bit RGB grey values are:

Greyscale RGB Values
Black R=0, G=0, B=0
Dark grey R=128, G=128, B=128
Light grey R=192, G=192, B=192
White R=255, G=255, B=255

High Color Depth Greyscale

In high color depth systems like 10-bit and 16-bit RGB, there are more possible values for each R, G and B channel. For example:

  • 10-bit RGB has 210 or 1024 possible values per channel (0-1023)
  • 16-bit RGB has 216 or 65,536 possible values per channel (0-65535)

This increased bit depth allows for more subtle gradations between shades of grey. Some example high color depth RGB values are:

Greyscale 10-bit RGB 16-bit RGB
Black R=0, G=0, B=0 R=0, G=0, B=0
Dark grey R=328, G=328, B=328 R=16384, G=16384, B=16384
Light grey R=664, G=664, B=664 R=32768, G=32768, B=32768
White R=1023, G=1023, B=1023 R=65535, G=65535, B=65535

The key point is that with higher color depths, there are more numerical RGB values available to specify an exact shade of grey.

Greyscale Encoding

How the RGB color channels are encoded can also impact the specific numerical values used to represent grey. Here are some common greyscale encoding methods:

Straight Binary Encoding

In straight binary encoding, each color channel value is directly proportional to the pixel intensity for that channel. Black is 0 and maximum intensity white is 2n-1, where n is the bit depth. Grey values follow a linear scale between 0 and the maximum value.

Gamma Encoding

Gamma encoding applies a nonlinear transfer function to the RGB values before display. This encoding aims to correct for the non-linear brightness response of monitors and better map to human perception. The net result is that gamma encoding uses higher numerical RGB values to represent darker shades of grey compared to linear encoding. Medium grey tends to be around 187 rather than 128 for 8-bit gamma encoding.

Rec. 709 Encoding

Rec. 709 or sRGB encoding is a standard gamma encoding curve used for HD televisions and consumer media. It expects RGB values to use the range 16-235 rather than 0-255. This means the grey values are shifted up: black is 16, medium grey is 127, and white is 235.

Common Uses of Grey in Design

Knowing the precise RGB values to use for different greys gives designers control and consistency. Here are some common uses of grey in design:

Backgrounds

Light and dark grey make ideal background colors as they provide contrast without being distracting. RGB grey backgrounds create a neutral canvas to place brighter content on.

Borders and Dividers

Grey makes for nice subtle borders and dividers between content blocks. Slightly darker grey values establish separation without excessive contrast.

Typography

Medium grey RGB values (like R=128, G=128, B=128) provide excellent legibility when used for body text or headers, especially against white backgrounds.

Icons

Grey is a popular color for iconography as it mutes icons so they integrate well against backgrounds without clashing. The exact grey value can be tailored to the specific context.

Tones and Gradients

Blending from light to dark grey in tones or gradients is common for backgrounds, banners, and other elements. Grey gradients add subtle depth.

Choosing RGB Values for Grey

When selecting the exact RGB values for grey, keep these tips in mind:

  • Match encoding – Use values appropriate for sRGB/Rec. 709 if targeting web/consumer uses. Use linear encoding for printing and color critical applications.
  • Use enough bit depth – At least 8-bit for most applications, but consider 10-bit or 16-bit for photography/video editing if color accuracy is vital.
  • Reference existing palettes – Many brands define corporate grey palettes, so reference those if color consistency is needed.
  • View on target display – Preview grey values on the actual display they will be viewed on for the most accuracy.
  • Adjust to context – Choose grey values with appropriate contrast against surrounding colors.

Testing different RGB combinations and evaluating them in the intended viewing environment is the best way to finalize the right grey for specific usage cases.

Conclusion

Grey represents an important set of neutral colors made by mixing equal amounts of red, green and blue light. The specific RGB values used to make grey shades range from R=0, G=0, B=0 for black up to R=255, G=255, B=255 for white, with any equal R, G, B values in between for intermediate greys. Factors like bit depth, encoding method, and display medium impact the exact numbers. When selecting RGB values for grey, choose values that align with project needs and viewing conditions to achieve the desired visual effect.