#787D8A#787D8A

#787D8A is a mid, muted grey. Relative luminance 0.205; OKLCH L 59.0% C 0.021 H 268.9°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#787D8A
RGBrgb(120, 125, 138)
HSLhsl(223, 7%, 51%)
HSVhsv(223, 13%, 54%)
CMYKcmyk(13%, 9.4%, 0%, 45.9%)
CIE-LABlab(52.39, 0.93, -7.67)
CIE-LCHlch(52.39, 7.73, 276.95°)
OKLaboklab(58.99% -0.0004 -0.0207)
OKLCHoklch(58.99% 0.021 268.9)
XYZxyz(19.6658, 20.4950, 26.9597)
Luminance0.2049 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787D8A #8A8578
analogous
#78868A #787D8A #7C788A
triadic
#787D8A #8A787D #7D8A78
tetradic
#787D8A #8A7886 #8A8578 #788A7C
square
#787D8A #8A7886 #8A8578 #788A7C
split-complementary
#787D8A #8A7C78 #868A78
monochromatic
#3F4249 #5B5F69 #787D8A #999DA6 #BABCC3

Accessibility & contrast

On white

4.12
#787D8A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#787D8A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787D8A
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787D8A#FFFFFF#000000##000000
##787D8A1.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#797E8B
Deuteranopia (green-blind)
#787C8A
Tritanopia (blue-blind)
#747F81
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #787d8a;
/* rgb */ color: rgb(120, 125, 138);
/* oklch */ color: oklch(59.0% 0.021 268.9);
Tailwind
colors: {
  custom: {
    50: '#9fa2ac',
    500: '#787d8a',
    950: '#000000',
  },
}
SCSS
$custom: #787d8a;
$custom-light: #9fa2ac;
$custom-dark: #000000;
JSON
{
  "hex": "#787d8a",
  "rgb": {
    "r": 120,
    "g": 125,
    "b": 138
  },
  "hsl": {
    "h": 223.333,
    "s": 7.143,
    "l": 50.588
  },
  "oklch": {
    "l": 0.58989,
    "c": 0.02068,
    "h": 268.9
  },
  "luminance": 0.20495
}

Semantic roles & 50–950 ramp

primary
#787D8A
secondary
#B3B1AB
accent
#A078B0
background
#F9F9FA
surface
#F2F2F4
border
#CCCCCE
text
#0E0F10
muted
#7E7E7F

Preview Lab

Preview with #787D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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