CSS Named Color Reference

Grey Color Code

Grey·#808080

Neutral FamilyNeutralMid toneLow saturationoklch(60.0% 0.000 90)
HEX
#808080Primary token
RGB
rgb(128, 128, 128)Screen values
HSL
hsl(0 0% 50%)Hue and lightness
CMYK
0, 0, 0, 50Print handoff
LAB
54, 0, 0Perceptual reference
OKLCH
oklch(60.0% 0.000 90)Modern perceptual

Grey is a mid-tone, muted CSS named color at #808080. If you searched for grey hex code, 808080, or grey RGB, this page gives the exact color value, conversion formats, contrast checks, nearby colors, and links into the lookup and converter workflows.

Best text colorDark text
Body text contrast4.34:1
Best UseTypography, surfaces, borders, shadows, and foundational interface structure

Tonal Scale

100#E8E8E8
300#C5C5C5
500#979797
600#808080
800#5C5C5C

Contrast Checks

White text on this color

Buttons, badges, and filled actions.

3.95:1Large text / UI only

Dark text on this color

Large headings and selective UI.

4.34:1Large text / UI only

This color on light surface

Links, borders, and icons on light UI.

3.75:1Large text / UI only
Best text colorDark textContrast 4.34:1

Professional Reference

OKLCHoklch(60.0% 0.000 90)
Relative Luminance0.2159
Source TypeCSS Named Color
Classification
Neutral FamilyNeutralMid toneLow saturation
Source Context
Source Type
CSS Named Color
System
CSS
Aliases
GrayAnt Design Grey 4
Closest Matches
Material Grey 600Ant Design Grey 3Tailwind Neutral 500
Color Notes
  • Grey is kept as an exact CSS named color for #808080.
  • Queries for grey color code, 808080, or grey RGB usually need the value first, then contrast and implementation context.

Accessibility Matrix

White text on this color

White text placed on the current color.

3.95:1Large text / UI only

Dark text on this color

Dark text or headings on the current color.

4.34:1Large text / UI only

This color on light surface

Use this color for links, strokes, or icons on light UI.

3.75:1Large text / UI only

This color on dark surface

Use this color inside dark shells for strokes, tags, or icons.

4.34:1Large text / UI only
Best text colorDark textContrast 4.34:1 · Large text / UI only

Where It Works

  • Use it for text, surfaces, rules, borders, elevation, and layout structure.
  • Choose the exact neutral by contrast role instead of treating all grays as interchangeable.
  • Pair with one clear accent color and a lighter or darker neutral step.

Reference Notes

Last Updated
2026-09-03
Source Library
CSS Standard Colors
Methodology
Verified source values + site guidance
Color Notes

Grey is sourced from the published CSS Standard Colors library and retained here as a searchable reference swatch for product and interface reference work.

Hue Family

Core neutrals for typography, surfaces, and systems.

Source Collections
CSS Named Colors

Related Colors

Palette Starting Points

Implementation Snippets

CSS Variables
:root {
  --color-grey: #808080;
  --color-grey-rgb: 128 128 128;
}
Utility Class
class="bg-[#808080] text-white"
class="hover:bg-[#5C5C5C] ring-1 ring-[#808080]"
JSON Token
{
  "grey": "#808080",
  "greyRgb": [128, 128, 128],
  "greyHsl": [0, 0, 50]
}