#786C8A#786C8A

#786C8A is a mid, muted violet. Relative luminance 0.166; OKLCH L 55.3% C 0.048 H 303.1°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#786C8A
RGBrgb(120, 108, 138)
HSLhsl(264, 12%, 48%)
HSVhsv(264, 22%, 54%)
CMYKcmyk(13%, 21.7%, 0%, 45.9%)
CIE-LABlab(47.69, 10.96, -14.75)
CIE-LCHlch(47.69, 18.38, 306.63°)
OKLaboklab(55.33% 0.0261 -0.0401)
OKLCHoklch(55.33% 0.048 303.1)
XYZxyz(17.6948, 16.5532, 26.3027)
Luminance0.1655 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786C8A #7E8A6C
analogous
#6C6F8A #786C8A #876C8A
triadic
#786C8A #8A786C #6C8A78
tetradic
#786C8A #8A6C6F #7E8A6C #6C8A87
square
#786C8A #8A6C6F #7E8A6C #6C8A87
split-complementary
#786C8A #8A876C #6F8A6C
monochromatic
#3C3645 #5A5168 #786C8A #978DA6 #B6B0C1

Accessibility & contrast

On white

4.87
#786C8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#786C8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786C8A
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786C8A#FFFFFF#000000##FFFFFF
##786C8A1.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#67718B
Deuteranopia (green-blind)
#697189
Tritanopia (blue-blind)
#757076
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #786c8a;
/* rgb */ color: rgb(120, 108, 138);
/* oklch */ color: oklch(55.3% 0.048 303.1);
Tailwind
colors: {
  custom: {
    50: '#9f96ac',
    500: '#786c8a',
    950: '#000000',
  },
}
SCSS
$custom: #786c8a;
$custom-light: #9f96ac;
$custom-dark: #000000;
JSON
{
  "hex": "#786c8a",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 138
  },
  "hsl": {
    "h": 264,
    "s": 12.195,
    "l": 48.235
  },
  "oklch": {
    "l": 0.55326,
    "c": 0.04787,
    "h": 303.1
  },
  "luminance": 0.16553
}

Semantic roles & 50–950 ramp

primary
#786C8A
secondary
#AAB0A2
accent
#B5739B
background
#F9F9FA
surface
#F2F1F4
border
#CCCBCE
text
#0E0D10
muted
#7E7E7F

Preview Lab

Preview with #786C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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