#787F87#787F87

#787F87 is a mid, near-neutral grey. Relative luminance 0.209; OKLCH L 59.3% C 0.015 H 251.6°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#787F87
RGBrgb(120, 127, 135)
HSLhsl(212, 6%, 50%)
HSVhsv(212, 11%, 53%)
CMYKcmyk(11.1%, 5.9%, 0%, 47.1%)
CIE-LABlab(52.86, -0.88, -5.22)
CIE-LCHlch(52.86, 5.29, 260.38°)
OKLaboklab(59.33% -0.0047 -0.014)
OKLCHoklch(59.33% 0.015 251.6)
XYZxyz(19.7073, 20.9208, 25.9168)
Luminance0.2092 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787F87 #878078
analogous
#788687 #787F87 #797887
triadic
#787F87 #87787F #7F8778
tetradic
#787F87 #877886 #878078 #788779
square
#787F87 #877886 #878078 #788779
split-complementary
#787F87 #877978 #868778
monochromatic
#3E4246 #5B6167 #787F87 #989EA4 #B9BCC1

Accessibility & contrast

On white

4.05
#787F87 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#787F87 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787F87
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787F87#FFFFFF#000000##000000
##787F871.004.055.185.18
#FFFFFF4.051.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#7C7F87
Deuteranopia (green-blind)
#7B7D87
Tritanopia (blue-blind)
#748181
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #787f87;
/* rgb */ color: rgb(120, 127, 135);
/* oklch */ color: oklch(59.3% 0.015 251.6);
Tailwind
colors: {
  custom: {
    50: '#9fa4aa',
    500: '#787f87',
    950: '#000000',
  },
}
SCSS
$custom: #787f87;
$custom-light: #9fa4aa;
$custom-dark: #000000;
JSON
{
  "hex": "#787f87",
  "rgb": {
    "r": 120,
    "g": 127,
    "b": 135
  },
  "hsl": {
    "h": 212,
    "s": 5.882,
    "l": 50
  },
  "oklch": {
    "l": 0.59327,
    "c": 0.01478,
    "h": 251.6
  },
  "luminance": 0.20921
}

Semantic roles & 50–950 ramp

primary
#787F87
secondary
#B1AEAA
accent
#9679AF
background
#F9FAFA
surface
#F2F4F4
border
#CCCECE
text
#0E0F10
muted
#7E7F7F

Preview Lab

Preview with #787F87

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

Preview Lab → · Contrast checker → · Palette generator →

#787F87 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva