#787F8A#787F8A

#787F8A is a mid, near-neutral grey. Relative luminance 0.210; OKLCH L 59.4% C 0.019 H 259.4°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#787F8A
RGBrgb(120, 127, 138)
HSLhsl(217, 7%, 51%)
HSVhsv(217, 13%, 54%)
CMYKcmyk(13%, 8%, 0%, 45.9%)
CIE-LABlab(52.96, -0.22, -6.83)
CIE-LCHlch(52.96, 6.83, 268.14°)
OKLaboklab(59.43% -0.0034 -0.0184)
OKLCHoklch(59.43% 0.019 259.4)
XYZxyz(19.9215, 21.0065, 27.0449)
Luminance0.2101 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787F8A #8A8378
analogous
#78888A #787F8A #7A788A
triadic
#787F8A #8A787F #7F8A78
tetradic
#787F8A #8A7888 #8A8378 #788A7A
square
#787F8A #8A7888 #8A8378 #788A7A
split-complementary
#787F8A #8A7A78 #888A78
monochromatic
#3F4349 #5B6169 #787F8A #999EA6 #BABDC3

Accessibility & contrast

On white

4.04
#787F8A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#787F8A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787F8A
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787F8A#FFFFFF#000000##000000
##787F8A1.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#7C7F8B
Deuteranopia (green-blind)
#7A7E8A
Tritanopia (blue-blind)
#748182
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #787f8a;
/* rgb */ color: rgb(120, 127, 138);
/* oklch */ color: oklch(59.4% 0.019 259.4);
Tailwind
colors: {
  custom: {
    50: '#9fa4ac',
    500: '#787f8a',
    950: '#000000',
  },
}
SCSS
$custom: #787f8a;
$custom-light: #9fa4ac;
$custom-dark: #000000;
JSON
{
  "hex": "#787f8a",
  "rgb": {
    "r": 120,
    "g": 127,
    "b": 138
  },
  "hsl": {
    "h": 216.667,
    "s": 7.143,
    "l": 50.588
  },
  "oklch": {
    "l": 0.59432,
    "c": 0.01872,
    "h": 259.4
  },
  "luminance": 0.21007
}

Semantic roles & 50–950 ramp

primary
#787F8A
secondary
#B3B0AB
accent
#9A78B0
background
#F9FAFA
surface
#F2F4F4
border
#CCCECE
text
#0E0F10
muted
#7E7F7F

Preview Lab

Preview with #787F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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