Gray Color Family

Gray Color Hex Code, RGB & HSL Values

Browse all Gray Colors

What is the meaning of the Gray color?

Gray is a cool, neutral color that balances black and white. It represents compromise, practicality, and industrial sophistication, commonly used in minimal web designs to create subtle borders, text, and secondary elements.

How to use the Gray color hex code in HTML & CSS?

To style elements with Gray on a website, use the hex code #808080 in your HTML/CSS. Adding background-color: #808080; will render the color. In Tailwind CSS, you can apply this shade dynamically using classes like bg-[#808080] or configuring it as a color variable in your configuration file.

What are the RGB and HSL codes of Gray?

In the digital sRGB spectrum, the Gray color code is mapped to RGB values of Red: 128, Green: 128, and Blue: 128. In the HSL system, it registers at hue angle 0°, saturation 0%, and lightness index 50%. It represents a balanced medium tone characterized by a highly muted, near-gray tone.

CMYK print profiles for Gray color

To reproduce the named shade Gray in print systems, the CMYK ink configuration requires 0% Cyan, 0% Magenta, 0% Yellow, and 50% black. Given its red-channel dominance, this color is a powerful visual stimulator often deployed in banners, call-to-actions, and warning components.

Red Channel 128
Green Channel 128
Blue Channel 128
Luminance 0.216

Gray Color Space Conversions

Click to copy format
HEX Color Code #808080
RGB (Red Green Blue) rgb(128, 128, 128)
HSL (Hue Sat Light) hsl(0°, 0%, 50%)
CMYK (Commercial Print) cmyk(0%, 0%, 0%, 50%)
HSV / HSB Values hsv(0°, 0%, 50%)
Decimal Color Code 8421504
CSS Custom Variable --color-hex: #808080;
Tailwind CSS Utility bg-[#808080]
CSS Named Color gray

Contrast & Accessibility (WCAG 2.1) Check

White Text on Background

White text readability test with #808080

Small body copy preview

Black Text on Background

Black text readability test with #808080

Small body copy preview

Complementary & Analogous Harmonies

Computed dynamically

Shades & Tints Generator Matrix

Copy shade hex values instantly

Darker Shades (Adding Black)

Lighter Tints (Adding White)

{ } CSS Custom Properties (Variables)

Copy CSS Styles
/* CSS Custom Properties for Gray */
--color-hex: #808080;
--color-rgb: rgb(128, 128, 128);
--color-hsl: hsl(0deg, 0%, 50%);
--color-name: gray;

Aa Known Color Aliases

Gray gray (CSS Identifier) Web GrayStandard GrayMedium GrayGrey

Gray Color Meaning

Representing the gray color family, Gray carries the intrinsic characteristics of this organic hue. This color group is the great equalizer of the color spectrum — neutral, impartial, and sophisticated. It carries connotations of maturity, reliability, and professional restraint. In design, gray provides visual breathing room, allowing accent colors to take center stage while creating an overall sense of sophistication. Dark charcoals communicate premium quality and authority, while light grays feel airy and modern. Technology companies favor gray for its associations with precision and innovation. Gray is psychologically calming precisely because it lacks the stimulation of chromatic colors. However, when overused without contrast, gray can feel cold, lifeless, and depressing — balance is essential to harness its sophistication.

Emotions & Associations

CalmBalanceSophisticationProfessionalism

Industries

FinanceAutomotiveArchitecture

Adjacent HEX Color Codes

Color Comparisons & Differences

🎨 Cohesive Color Combinations & Palettes

Copied!