#786C8D#786C8D

#786C8D is a mid, muted violet. Relative luminance 0.166; OKLCH L 55.5% C 0.052 H 301.3°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#786C8D
RGBrgb(120, 108, 141)
HSLhsl(262, 13%, 49%)
HSVhsv(262, 23%, 55%)
CMYKcmyk(14.9%, 23.4%, 0%, 44.7%)
CIE-LABlab(47.80, 11.66, -16.36)
CIE-LCHlch(47.80, 20.09, 305.48°)
OKLaboklab(55.45% 0.0272 -0.0446)
OKLCHoklch(55.45% 0.052 301.3)
XYZxyz(17.9150, 16.6413, 27.4624)
Luminance0.1664 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786C8D #818D6C
analogous
#6C718D #786C8D #896C8D
triadic
#786C8D #8D786C #6C8D78
tetradic
#786C8D #8D6C71 #818D6C #6C8D89
square
#786C8D #8D6C71 #818D6C #6C8D89
split-complementary
#786C8D #8D896C #718D6C
monochromatic
#3D3748 #5B516A #786C8D #978EA8 #B7B1C3

Accessibility & contrast

On white

4.85
#786C8D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#786C8D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786C8D
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786C8D#FFFFFF#000000##FFFFFF
##786C8D1.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#66718E
Deuteranopia (green-blind)
#68718C
Tritanopia (blue-blind)
#757177
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #786c8d;
/* rgb */ color: rgb(120, 108, 141);
/* oklch */ color: oklch(55.5% 0.052 301.3);
Tailwind
colors: {
  custom: {
    50: '#9f96ae',
    500: '#786c8d',
    950: '#000000',
  },
}
SCSS
$custom: #786c8d;
$custom-light: #9f96ae;
$custom-dark: #000000;
JSON
{
  "hex": "#786c8d",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 141
  },
  "hsl": {
    "h": 261.818,
    "s": 13.253,
    "l": 48.824
  },
  "oklch": {
    "l": 0.55451,
    "c": 0.05222,
    "h": 301.3
  },
  "luminance": 0.16641
}

Semantic roles & 50–950 ramp

primary
#786C8D
secondary
#ADB2A3
accent
#B6729D
background
#F9F9FA
surface
#F2F1F4
border
#CCCBCE
text
#0E0D10
muted
#7E7E7F

Preview Lab

Preview with #786C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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