Skip to main content

Gray

#808080·gray family·WCAG AA

Tints & Shades

50

100

200

300

400

500

600

700

800

900

Scale from white (50) through Gray (500) to black (900), interpolated in Lab color space.

Color Values

HEX
#808080
RGB
rgb(128, 128, 128)
HSL
hsl(0, 0%, 50%)
OKLCH
oklch(0.6 0 0)
CMYK
cmyk(0%, 0%, 0%, 50%)
Luminance:0.2159
CSS var:--color-gray
Tailwind:bg-[#808080]

Accessibility

Score: 39/100

On White (#FFF)

3.95:1

AA Large

On Black (#000)

5.32:1

AA

On Light Gray (#F5F5F5)

3.62:1

AA Large

Best text color on this background:

black5.32:1
Open in Contrast Checker →

Design Applications

Background

background-color: #808080

Text Color

color: #808080

bg-[#808080] text-[#000000]

Accent border card component

border-left: 4px solid #808080

Color Meaning & Psychology

Perfect gray (equal R, G, B values) is the ultimate neutral — an anchor for any color palette. In user interface design, gray is used more than any other color because it has no emotional opinion about what surrounds it. The prevalence of gray in Apple's design language helped establish it as the dominant color of premium digital aesthetics.

Industry Usage

Common contexts and industries where Gray is applied in professional design.

  • Premium technology hardware and devices
  • Architectural and interior design services
  • Automotive brands emphasizing refinement
  • Financial and professional services
  • Typography and editorial design
  • Industrial and engineering companies
  • Minimalist fashion and luxury apparel
  • Enterprise software UI neutral elements

Accessibility Considerations

Normal Text

Fails AA

4.5:1 minimum required

Large Text

Passes AA Large

3:1 minimum required

UI Components

Meets 1.4.11

3:1 for non-text UI

Gray is a light color. Use black (#000000) text on top of it for maximum readability (5.32:1). Avoid white text on this background.

CSS & Code Examples

Background

background-color: #808080;

Text

color: #808080;

Border

border: 2px solid #808080;

Box Shadow

box-shadow: 0 4px 20px #80808040;

Gradient

background: linear-gradient(135deg, #808080, #afafaf);

Tailwind-style

--color-gray: #808080;

Tailwind CSS Utilities

Use arbitrary value syntax in Tailwind CSS to apply Gray without a custom config.

Background

bg-[#808080]

Text

text-[#808080]

Border

border-[#808080]

Ring

ring-[#808080]

Fill

fill-[#808080]

From (gradient)

from-[#808080]

Via (gradient)

via-[#808080]

To (gradient)

to-[#808080]

Design Tokens

Ready-to-use Gray design token in CSS custom properties, SCSS, Tailwind v3/v4, and JSON formats.

CSS Custom Properties

:root {
  --color-gray: #808080;
  --color-gray-rgb: 128, 128, 128;
  --color-gray-hsl: 0, 0%, 50%;
}

SCSS Variables

$color-gray: #808080;
$color-gray-rgb: 128, 128, 128;
$color-gray-hsl: 0, 0%, 50%;

Tailwind v3 Config

// tailwind.config.js
module.exports = {
  theme: {
    extend: {
      colors: {
        'gray': '#808080',
      },
    },
  },
};

Tailwind v4 (@theme)

/* tailwind.css */
@theme {
  --color-gray: #808080;
}

JSON Design Token (W3C format)

{
  "gray": {
    "value": "#808080",
    "type": "color",
    "description": "Gray — #808080"
  }
}

What Does Gray Mean? Color Psychology & Cultural Symbolism

The psychology of Gray is about trust through restraint. In a visual culture of constant stimulation, a medium gray that refuses to shout becomes its own kind of statement—one of precision, confidence, and professional control.

  • Gray is design's great enabler—the neutral foundation on which other colors perform. In corporate contexts it projects professionalism without warmth (contrasted with blue) or assertiveness (contrasted with black). In luxury design, sophisticated warm grays signal refinement and editorial taste.
  • In Japanese aesthetics, gray (haiiro) is deeply valued for its understated elegance—a key component of the wabi-sabi philosophy of imperfect, restrained beauty. Chinese ink painting depends on the full spectrum of gray tones as an expressive medium in itself.
  • Gray's medium lightness (50%) shifts its psychological register: a balanced mid-tone that embodies neutrality, professionalism, sophistication, and balance at its most direct.
  • At 0% saturation, Gray reads as neutral—All grays are inherently muted, but mid-tones in the 40-60% lightness range do the heaviest lifting in sophisticated design systems—providing contrast, hierarchy, and structure without ever competing with the palette's primary colors.

Gray lets everything else be what it is. That generosity is its design superpower.

How to Use Gray in Design: Applications, Pairings & Best Practices

Gray is the backbone of professional design systems—the color that makes typography legible, spacing visible, and content hierarchy clear. Its neutrality is a feature, not a limitation.

  • UI components: neutral backgrounds, disabled states, secondary text—Gray performs reliably in all these roles with its medium tonal character.
  • Brand & identity: professional service identities, technology UIs, editorial layouts—contexts where Gray's neutral quality creates the right register.
  • Typography: Gray as text requires a dark background; its 50% lightness means it provides 4.0:1 contrast on white, not meeting WCAG AA.
  • Gray creates strong legibility with black text overlays (5.3:1 contrast ratio), making it a reliable background or surface color in design systems
  • Proportional use: Gray's neutral quality means it scales well across proportions—from full-bleed backgrounds to single-pixel borders—making it an unusually versatile palette component.

Gray lets everything else be what it is. That generosity is its design superpower.

Gray Accessibility: WCAG Contrast Ratios, Color Blindness & Inclusive Design

Gray (#808080) reaches 5.32:1 contrast with black text—meeting WCAG 2.1 AA minimum of 4.5:1 for normal text and 3:1 for large text. It clears standard production accessibility requirements. Relative luminance: 21.6%.

  • As text on white (#FFFFFF): 3.95:1 — AA (large text only)
  • As text on black (#000000): 5.32:1 — AA ✓
  • Best text color on Gray background: Black (#000000) at 5.32:1
  • WCAG 2.1 luminance: 21.6% — mid-range luminance—it sits in the transition zone where both dark and light text approaches require testing against the 4.5:1 WCAG threshold
  • Gray qualifies for normal body text and all larger sizes (AA).

Always verify Gray at its final intended size and weight using a real contrast checker—font weight and rendering environment affect perceived legibility beyond what raw ratios capture.

Gray in Industry: Branding, Design & Market Applications

Across industry research, gray-family tones consistently outperform competitors in categories built on neutrality, professionalism, sophistication, and balance. Gray is a medium expression of this advantage—best positioned in Technology and adjacent markets.

  • Technology: Gray dominates technology UI design because it provides the neutral canvas on which colorful, dynamic interface elements perform. Apple's aluminum aesthetic established gray as the physical language of precision engineering, an association that has persisted across all of tech. (examples: Apple, Microsoft, Salesforce) Cool grays signal digital precision; warm grays feel more approachable and human—choice depends on product personality.
  • Finance & Professional Services: Gray communicates the seriousness of people who manage important things—it's the suit of the professional world. Financial services, consulting, and legal firms use it to project competence, precision, and the absence of emotional noise. (examples: Capital One, PayPal, Visa) Dark charcoal is more authoritative than mid-gray for premium financial brands; lighter grays communicate approachable modernity.
  • Luxury & Automotive: Luxury brands use sophisticated warm grays as an alternative to the expected black—it signals refinement, editorial taste, and the confidence that doesn't need to shout. Automotive brands use it for the same reason: gray cars signal understated premium quality. (examples: Porsche, Tesla, Mercedes-Benz) The specific undertone of a luxury gray (warm vs cool, light vs dark) determines whether it reads as contemporary or classic.
  • Brand positioning: Gray is best suited for brands projecting professionalism, neutrality, sophistication. Categories outside this positioning—color-forward consumer brands that need warmth and personality—tend to see weaker results.
  • Adjacent applications: Beyond primary industries, Gray works effectively in professional service identities, technology UIs, editorial layouts—contexts where timelessness serves a secondary but reinforcing role.

Gray earns its strongest ROI in industries where trust and recognition compound over time: Technology, Finance & Professional Services, Luxury & Automotive. Use it to build the kind of brand recognition that decades reinforce.

Frequently Asked Questions

What is the hex code for Gray?
The hex code for Gray is #808080. Its RGB values are rgb(128, 128, 128) and its HSL values are hsl(0, 0%, 50%).
What does Gray mean in design?
Perfect gray (equal R, G, B values) is the ultimate neutral — an anchor for any color palette. In user interface design, gray is used more than any other color because it has no emotional opinion about what surrounds it. The prevalence of gray in Apple's design language helped establish it as the dominant color of premium digital aesthetics.
Is Gray WCAG accessible?
Gray (#808080) passes WCAG AA-large on white with a 3.95:1 contrast ratio. Its overall accessibility score is 39/100.
What colors go well with Gray?
Gray pairs well with its complementary color Iron Gray (#595E5E). Analogous colors like Hot Pink and Burgundy also work harmoniously. Check the Color Harmonies section above for the full palette.
What is Gray used for?
Gray is commonly used for: Premium technology hardware and devices; Architectural and interior design services; Automotive brands emphasizing refinement; Financial and professional services; Typography and editorial design.
What are the CSS and Tailwind values for Gray?
In CSS, use `color: #808080` or `background-color: #808080`. The CSS custom property is `--color-gray: #808080`. In Tailwind CSS, use the arbitrary value class `bg-[#808080]` for backgrounds or `text-[#808080]` for text.