#787C8B#787C8B

#787C8B is a mid, muted grey. Relative luminance 0.203; OKLCH L 58.8% C 0.023 H 273.8°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#787C8B
RGBrgb(120, 124, 139)
HSLhsl(227, 8%, 51%)
HSVhsv(227, 14%, 55%)
CMYKcmyk(13.7%, 10.8%, 0%, 45.5%)
CIE-LABlab(52.14, 1.74, -8.63)
CIE-LCHlch(52.14, 8.80, 281.40°)
OKLaboklab(58.8% 0.0016 -0.0233)
OKLCHoklch(58.8% 0.023 273.8)
XYZxyz(19.6125, 20.2722, 27.3007)
Luminance0.2027 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787C8B #8B8778
analogous
#78858B #787C8B #7D788B
triadic
#787C8B #8B787C #7C8B78
tetradic
#787C8B #8B7885 #8B8778 #788B7D
square
#787C8B #8B7885 #8B8778 #788B7D
split-complementary
#787C8B #8B7D78 #858B78
monochromatic
#3F4149 #5B5F6A #787C8B #999CA7 #BABCC4

Accessibility & contrast

On white

4.15
#787C8B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#787C8B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787C8B
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787C8B#FFFFFF#000000##000000
##787C8B1.004.155.055.05
#FFFFFF4.151.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#787D8C
Deuteranopia (green-blind)
#777C8B
Tritanopia (blue-blind)
#747F81
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #787c8b;
/* rgb */ color: rgb(120, 124, 139);
/* oklch */ color: oklch(58.8% 0.023 273.8);
Tailwind
colors: {
  custom: {
    50: '#9fa1ac',
    500: '#787c8b',
    950: '#000000',
  },
}
SCSS
$custom: #787c8b;
$custom-light: #9fa1ac;
$custom-dark: #000000;
JSON
{
  "hex": "#787c8b",
  "rgb": {
    "r": 120,
    "g": 124,
    "b": 139
  },
  "hsl": {
    "h": 227.368,
    "s": 7.57,
    "l": 50.784
  },
  "oklch": {
    "l": 0.58805,
    "c": 0.02334,
    "h": 273.8
  },
  "luminance": 0.20272
}

Semantic roles & 50–950 ramp

primary
#787C8B
secondary
#B4B2AB
accent
#A577B1
background
#F9F9FA
surface
#F2F2F4
border
#CCCCCE
text
#0E0F10
muted
#7E7E7F

Preview Lab

Preview with #787C8B

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

Preview Lab → · Contrast checker → · Palette generator →

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