#786C7C#786C7C

#786C7C is a mid, muted grey. Relative luminance 0.162; OKLCH L 54.8% C 0.028 H 317.7°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#786C7C
RGBrgb(120, 108, 124)
HSLhsl(285, 7%, 45%)
HSVhsv(285, 13%, 49%)
CMYKcmyk(3.2%, 12.9%, 0%, 51.4%)
CIE-LABlab(47.20, 7.88, -7.14)
CIE-LCHlch(47.20, 10.64, 317.82°)
OKLaboklab(54.78% 0.021 -0.0191)
OKLCHoklch(54.78% 0.028 317.7)
XYZxyz(16.7458, 16.1736, 21.3045)
Luminance0.1617 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786C7C #707C6C
analogous
#706C7C #786C7C #7C6C78
triadic
#786C7C #7C786C #6C7C78
tetradic
#786C7C #7C706C #707C6C #6C787C
square
#786C7C #7C706C #707C6C #6C787C
split-complementary
#786C7C #787C6C #6C7C70
monochromatic
#39333B #58505B #786C7C #968B9A #B4ACB7

Accessibility & contrast

On white

4.96
#786C7C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#786C7C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786C7C
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786C7C#FFFFFF#000000##FFFFFF
##786C7C1.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6A6F7D
Deuteranopia (green-blind)
#6D707B
Tritanopia (blue-blind)
#786E71
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #786c7c;
/* rgb */ color: rgb(120, 108, 124);
/* oklch */ color: oklch(54.8% 0.028 317.7);
Tailwind
colors: {
  custom: {
    50: '#9f96a1',
    500: '#786c7c',
    950: '#000000',
  },
}
SCSS
$custom: #786c7c;
$custom-light: #9f96a1;
$custom-dark: #000000;
JSON
{
  "hex": "#786c7c",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 124
  },
  "hsl": {
    "h": 285,
    "s": 6.897,
    "l": 45.49
  },
  "oklch": {
    "l": 0.54783,
    "c": 0.02837,
    "h": 317.7
  },
  "luminance": 0.16173
}

Semantic roles & 50–950 ramp

primary
#786C7C
secondary
#A0A69D
accent
#B07886
background
#F9F9F9
surface
#F2F1F2
border
#CCCBCC
text
#0E0D0F
muted
#7E7E7E

Preview Lab

Preview with #786C7C

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

Preview Lab → · Contrast checker → · Palette generator →

#786C7C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva