#787C8A#787C8A

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

Color values

HEX#787C8A
RGBrgb(120, 124, 138)
HSLhsl(227, 7%, 51%)
HSVhsv(227, 13%, 54%)
CMYKcmyk(13%, 10.1%, 0%, 45.9%)
CIE-LABlab(52.11, 1.51, -8.09)
CIE-LCHlch(52.11, 8.23, 280.60°)
OKLaboklab(58.77% 0.0012 -0.0218)
OKLCHoklch(58.77% 0.022 273)
XYZxyz(19.5398, 20.2431, 26.9177)
Luminance0.2024 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787C8A #8A8678
analogous
#78858A #787C8A #7D788A
triadic
#787C8A #8A787C #7C8A78
tetradic
#787C8A #8A7885 #8A8678 #788A7D
square
#787C8A #8A7885 #8A8678 #788A7D
split-complementary
#787C8A #8A7D78 #858A78
monochromatic
#3F4149 #5B5E69 #787C8A #999CA6 #BABCC3

Accessibility & contrast

On white

4.16
#787C8A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##787C8A#FFFFFF#000000##000000
##787C8A1.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#787D8B
Deuteranopia (green-blind)
#777C8A
Tritanopia (blue-blind)
#747E80
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #787c8a;
/* rgb */ color: rgb(120, 124, 138);
/* oklch */ color: oklch(58.8% 0.022 273.0);
Tailwind
colors: {
  custom: {
    50: '#9fa1ac',
    500: '#787c8a',
    950: '#000000',
  },
}
SCSS
$custom: #787c8a;
$custom-light: #9fa1ac;
$custom-dark: #000000;
JSON
{
  "hex": "#787c8a",
  "rgb": {
    "r": 120,
    "g": 124,
    "b": 138
  },
  "hsl": {
    "h": 226.667,
    "s": 7.143,
    "l": 50.588
  },
  "oklch": {
    "l": 0.58769,
    "c": 0.02185,
    "h": 273
  },
  "luminance": 0.20243
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #787C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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