#786CAA#786CAA

#786CAA is a mid, moderate violet. Relative luminance 0.176; OKLCH L 56.8% C 0.095 H 292.0°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#786CAA
RGBrgb(120, 108, 170)
HSLhsl(252, 27%, 55%)
HSVhsv(252, 36%, 67%)
CMYKcmyk(29.4%, 36.5%, 0%, 33.3%)
CIE-LABlab(49.03, 18.87, -31.53)
CIE-LCHlch(49.03, 36.75, 300.90°)
OKLaboklab(56.8% 0.0355 -0.0879)
OKLCHoklch(56.8% 0.095 292)
XYZxyz(20.3622, 17.6201, 40.3506)
Luminance0.1762 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786CAA #9EAA6C
analogous
#6C7FAA #786CAA #976CAA
triadic
#786CAA #AA786C #6CAA78
tetradic
#786CAA #AA6C7F #9EAA6C #6CAA97
square
#786CAA #AA6C7F #9EAA6C #6CAA97
split-complementary
#786CAA #AA976C #7FAA6C
monochromatic
#413963 #5B4F89 #786CAA #9C93C0 #BFBAD7

Accessibility & contrast

On white

4.64
#786CAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#786CAA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #786CAA
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786CAA#FFFFFF#000000##FFFFFF
##786CAA1.004.644.524.64
#FFFFFF4.641.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B75AC
Deuteranopia (green-blind)
#5C73A8
Tritanopia (blue-blind)
#6D7783
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #786caa;
/* rgb */ color: rgb(120, 108, 170);
/* oklch */ color: oklch(56.8% 0.095 292.0);
Tailwind
colors: {
  custom: {
    50: '#a096c3',
    500: '#786caa',
    950: '#000000',
  },
}
SCSS
$custom: #786caa;
$custom-light: #a096c3;
$custom-dark: #000000;
JSON
{
  "hex": "#786caa",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 170
  },
  "hsl": {
    "h": 251.613,
    "s": 26.724,
    "l": 54.51
  },
  "oklch": {
    "l": 0.56799,
    "c": 0.09476,
    "h": 292
  },
  "luminance": 0.1762
}

Semantic roles & 50–950 ramp

primary
#786CAA
secondary
#C1C6AC
accent
#C365B1
background
#FAF9FC
surface
#F3F2F8
border
#CDCCD1
text
#0F0D12
muted
#7F7E81

Preview Lab

Preview with #786CAA

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

Preview Lab → · Contrast checker → · Palette generator →

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