#786B8A#786B8A

#786B8A is a mid, muted violet. Relative luminance 0.163; OKLCH L 55.1% C 0.050 H 303.9°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#786B8A
RGBrgb(120, 107, 138)
HSLhsl(265, 13%, 48%)
HSVhsv(265, 22%, 54%)
CMYKcmyk(13%, 22.5%, 0%, 45.9%)
CIE-LABlab(47.42, 11.56, -15.16)
CIE-LCHlch(47.42, 19.06, 307.34°)
OKLaboklab(55.12% 0.0277 -0.0412)
OKLCHoklch(55.12% 0.05 303.9)
XYZxyz(17.5900, 16.3435, 26.2678)
Luminance0.1634 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786B8A #7D8A6B
analogous
#6B6D8A #786B8A #876B8A
triadic
#786B8A #8A786B #6B8A78
tetradic
#786B8A #8A6B6D #7D8A6B #6B8A87
square
#786B8A #8A6B6D #7D8A6B #6B8A87
split-complementary
#786B8A #8A876B #6D8A6B
monochromatic
#3C3645 #5A5068 #786B8A #978CA6 #B6AFC1

Accessibility & contrast

On white

4.92
#786B8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#786B8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786B8A
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786B8A#FFFFFF#000000##FFFFFF
##786B8A1.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#65708B
Deuteranopia (green-blind)
#687089
Tritanopia (blue-blind)
#756F76
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #786b8a;
/* rgb */ color: rgb(120, 107, 138);
/* oklch */ color: oklch(55.1% 0.050 303.9);
Tailwind
colors: {
  custom: {
    50: '#9f95ac',
    500: '#786b8a',
    950: '#000000',
  },
}
SCSS
$custom: #786b8a;
$custom-light: #9f95ac;
$custom-dark: #000000;
JSON
{
  "hex": "#786b8a",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 138
  },
  "hsl": {
    "h": 265.161,
    "s": 12.653,
    "l": 48.039
  },
  "oklch": {
    "l": 0.55118,
    "c": 0.04969,
    "h": 303.9
  },
  "luminance": 0.16343
}

Semantic roles & 50–950 ramp

primary
#786B8A
secondary
#AAB0A1
accent
#B67299
background
#F9F9FA
surface
#F2F1F4
border
#CCCBCE
text
#0E0D10
muted
#7E7E7F

Preview Lab

Preview with #786B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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