#786C8E#786C8E

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

Color values

HEX#786C8E
RGBrgb(120, 108, 142)
HSLhsl(261, 14%, 49%)
HSVhsv(261, 24%, 56%)
CMYKcmyk(15.5%, 23.9%, 0%, 44.3%)
CIE-LABlab(47.84, 11.89, -16.89)
CIE-LCHlch(47.84, 20.66, 305.15°)
OKLaboklab(55.49% 0.0275 -0.0461)
OKLCHoklch(55.49% 0.054 300.8)
XYZxyz(17.9898, 16.6712, 27.8560)
Luminance0.1667 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786C8E #828E6C
analogous
#6C718E #786C8E #896C8E
triadic
#786C8E #8E786C #6C8E78
tetradic
#786C8E #8E6C71 #828E6C #6C8E89
square
#786C8E #8E6C71 #828E6C #6C8E89
split-complementary
#786C8E #8E896C #718E6C
monochromatic
#3D3748 #5B526B #786C8E #988EA9 #B7B1C4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##786C8E#FFFFFF#000000##FFFFFF
##786C8E1.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)
#65718F
Deuteranopia (green-blind)
#67718D
Tritanopia (blue-blind)
#747178
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #786c8e;
/* rgb */ color: rgb(120, 108, 142);
/* oklch */ color: oklch(55.5% 0.054 300.8);
Tailwind
colors: {
  custom: {
    50: '#9f96af',
    500: '#786c8e',
    950: '#000000',
  },
}
SCSS
$custom: #786c8e;
$custom-light: #9f96af;
$custom-dark: #000000;
JSON
{
  "hex": "#786c8e",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 142
  },
  "hsl": {
    "h": 261.176,
    "s": 13.6,
    "l": 49.02
  },
  "oklch": {
    "l": 0.55493,
    "c": 0.05369,
    "h": 300.8
  },
  "luminance": 0.16671
}

Semantic roles & 50–950 ramp

primary
#786C8E
secondary
#ADB3A3
accent
#B6719E
background
#F9F9FA
surface
#F2F1F4
border
#CCCBCE
text
#0E0D10
muted
#7E7E7F

Preview Lab

Preview with #786C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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