Grayscale

Grayscale is a visual art characteristic in which an image is composed exclusively of shades of gray. Each shade of gray represents a specific amount of light transmission. At the lowest intensity, black represents total absence of light, and at the highest intensity, white represents total transmission or reflection of light.

How is grayscale used?

Grayscale originates from non-digital art mediums like painting, sketching, and film photography. In digital art and computer graphics, each pixel represents a different value of the grayscale depending on its intensity. Depending on the project, it’s common for graphic artists, digital photographers, videographers, web designers, and video game developers to use grayscale images at some point.

Numerical representations of grayscale

Modern graphics displays use 8 bits per sampled pixel to create grayscale images. Each pixel displays a shade of gray using a binary format between 00000000 (black) and 11111111 (white). 

In RGB models, each color is given a value between 0 and 255. Each color (red, green, blue) is present in equal quantity, meaning R=G=B. The lightness of the shade of gray is directly proportional to the brightness of the pigments, so pure black is represented as R=G=B=0 and pure white is represented as R=G=B=255. 

In CMY (cyan, magenta, yellow) models, each shade is assigned a percentage of light reflected from 0 to 100. Similar to RGB models, all three colors are given equal weight. Unlike RGB, however, the lightness of the shade of gray is inversely proportional to the brightness of the pigments. Pure black is represented as C=M=Y=100 in this model and pure white is represented as C=M=Y=0.

Example of grayscale

The two images of Chester below depict an example of a color image translated to grayscale:

Color image of cat laying on floor.
Grayscale image of cat laying on the floor.
Kaiti Norton
Kaiti Norton
Kaiti Norton is a Nashville-based Content Writer for TechnologyAdvice, a full-service B2B media company. She is passionate about helping brands build genuine connections with their customers through relatable, research-based content. When she's not writing about technology, she's sharing her musings about fashion, cats, books, and skincare on her blog.

Related Articles

Rendering

To render an image is to use software to convert code into a two- or three-dimensional image so it can be displayed or printed....

Vector Image

A vector image is a digital image in which points, lines, and curves based on mathematical equations are used to form different shapes. Each...

Convergence

Convergence is the merging and integration of two or more distinct technologies in a single system. For example, a smartphone combines the capabilities of...

Superword Level Parallelism

Superword level parallelism (SLP) is an advanced method of traditional vectorization that facilitates parallelism across loop iterations, SIMD, and basic blocks. Vectorization in this...

Geotargeting

Geotargeting is a method of delivering data or content to users based on...

Agile Project Management

Agile project management enables business teams to approach their projects and tasks with...

Private 5G Network

A private 5G network is a private local area network (LAN) that utilizes...