#787E8A#787E8A

#787E8A is a mid, near-neutral grey. Relative luminance 0.207; OKLCH L 59.2% C 0.020 H 264.4°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#787E8A
RGBrgb(120, 126, 138)
HSLhsl(220, 7%, 51%)
HSVhsv(220, 13%, 54%)
CMYKcmyk(13%, 8.7%, 0%, 45.9%)
CIE-LABlab(52.67, 0.36, -7.25)
CIE-LCHlch(52.67, 7.26, 272.81°)
OKLaboklab(59.21% -0.0019 -0.0195)
OKLCHoklch(59.21% 0.02 264.4)
XYZxyz(19.7930, 20.7495, 27.0021)
Luminance0.2075 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787E8A #8A8478
analogous
#78878A #787E8A #7B788A
triadic
#787E8A #8A787E #7E8A78
tetradic
#787E8A #8A7887 #8A8478 #788A7B
square
#787E8A #8A7887 #8A8478 #788A7B
split-complementary
#787E8A #8A7B78 #878A78
monochromatic
#3F4249 #5B6069 #787E8A #999DA6 #BABDC3

Accessibility & contrast

On white

4.08
#787E8A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#787E8A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787E8A
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787E8A#FFFFFF#000000##000000
##787E8A1.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#7A7F8B
Deuteranopia (green-blind)
#797D8A
Tritanopia (blue-blind)
#748082
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #787e8a;
/* rgb */ color: rgb(120, 126, 138);
/* oklch */ color: oklch(59.2% 0.020 264.4);
Tailwind
colors: {
  custom: {
    50: '#9fa3ac',
    500: '#787e8a',
    950: '#000000',
  },
}
SCSS
$custom: #787e8a;
$custom-light: #9fa3ac;
$custom-dark: #000000;
JSON
{
  "hex": "#787e8a",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 138
  },
  "hsl": {
    "h": 220,
    "s": 7.143,
    "l": 50.588
  },
  "oklch": {
    "l": 0.59211,
    "c": 0.01963,
    "h": 264.4
  },
  "luminance": 0.2075
}

Semantic roles & 50–950 ramp

primary
#787E8A
secondary
#B3B0AB
accent
#9D78B0
background
#F9FAFA
surface
#F2F3F4
border
#CCCDCE
text
#0E0F10
muted
#7E7F7F

Preview Lab

Preview with #787E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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