#81787F#81787F

#81787F is a mid, near-neutral grey. Relative luminance 0.196; OKLCH L 58.3% C 0.015 H 333.2°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#81787F
RGBrgb(129, 120, 127)
HSLhsl(313, 4%, 49%)
HSVhsv(313, 7%, 51%)
CMYKcmyk(0%, 7%, 1.6%, 49.4%)
CIE-LABlab(51.42, 4.80, -2.58)
CIE-LCHlch(51.42, 5.45, 331.74°)
OKLaboklab(58.3% 0.0135 -0.0068)
OKLCHoklch(58.3% 0.015 333.2)
XYZxyz(19.6000, 19.6325, 22.8315)
Luminance0.1963 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#81787F #78817A
analogous
#7F7881 #81787F #81787B
triadic
#81787F #7F8178 #787F81
tetradic
#81787F #817F78 #78817A #787B81
square
#81787F #817F78 #78817A #787B81
split-complementary
#81787F #7B8178 #78817F
monochromatic
#423D41 #615B60 #81787F #9F979D #BCB7BB

Accessibility & contrast

On white

4.26
#81787F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#81787F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #81787F
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##81787F#FFFFFF#000000##000000
##81787F1.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#787A7F
Deuteranopia (green-blind)
#7A7B7F
Tritanopia (blue-blind)
#82787A
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #81787f;
/* rgb */ color: rgb(129, 120, 127);
/* oklch */ color: oklch(58.3% 0.015 333.2);
Tailwind
colors: {
  custom: {
    50: '#a59fa4',
    500: '#81787f',
    950: '#000000',
  },
}
SCSS
$custom: #81787f;
$custom-light: #a59fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#81787f",
  "rgb": {
    "r": 129,
    "g": 120,
    "b": 127
  },
  "hsl": {
    "h": 313.333,
    "s": 3.614,
    "l": 48.824
  },
  "oklch": {
    "l": 0.58301,
    "c": 0.0151,
    "h": 333.2
  },
  "luminance": 0.19632
}

Semantic roles & 50–950 ramp

primary
#81787F
secondary
#A8ADA9
accent
#AD867B
background
#FAF9FA
surface
#F4F2F4
border
#CECCCE
text
#0F0E0F
muted
#7F7E7F

Preview Lab

Preview with #81787F

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#81787F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva