#786AAA#786AAA

#786AAA is a mid, moderate violet. Relative luminance 0.172; OKLCH L 56.4% C 0.098 H 293.0°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#786AAA
RGBrgb(120, 106, 170)
HSLhsl(253, 27%, 54%)
HSVhsv(253, 38%, 67%)
CMYKcmyk(29.4%, 37.6%, 0%, 33.3%)
CIE-LABlab(48.51, 20.07, -32.34)
CIE-LCHlch(48.51, 38.06, 301.83°)
OKLaboklab(56.4% 0.0384 -0.0902)
OKLCHoklch(56.4% 0.098 293)
XYZxyz(20.1537, 17.2031, 40.2811)
Luminance0.1720 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786AAA #9CAA6A
analogous
#6A7CAA #786AAA #986AAA
triadic
#786AAA #AA786A #6AAA78
tetradic
#786AAA #AA6A7C #9CAA6A #6AAA98
square
#786AAA #AA6A7C #9CAA6A #6AAA98
split-complementary
#786AAA #AA986A #7CAA6A
monochromatic
#413862 #5B4E89 #786AAA #9B91C0 #BFB8D6

Accessibility & contrast

On white

4.73
#786AAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#786AAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786AAA
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786AAA#FFFFFF#000000##FFFFFF
##786AAA1.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5874AD
Deuteranopia (green-blind)
#5A72A8
Tritanopia (blue-blind)
#6D7582
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #786aaa;
/* rgb */ color: rgb(120, 106, 170);
/* oklch */ color: oklch(56.4% 0.098 293.0);
Tailwind
colors: {
  custom: {
    50: '#a094c3',
    500: '#786aaa',
    950: '#000000',
  },
}
SCSS
$custom: #786aaa;
$custom-light: #a094c3;
$custom-dark: #000000;
JSON
{
  "hex": "#786aaa",
  "rgb": {
    "r": 120,
    "g": 106,
    "b": 170
  },
  "hsl": {
    "h": 253.125,
    "s": 27.35,
    "l": 54.118
  },
  "oklch": {
    "l": 0.56404,
    "c": 0.09802,
    "h": 293
  },
  "luminance": 0.17203
}

Semantic roles & 50–950 ramp

primary
#786AAA
secondary
#C0C6AA
accent
#C464AF
background
#FAF9FC
surface
#F3F1F8
border
#CDCBD1
text
#0F0D12
muted
#7F7E81

Preview Lab

Preview with #786AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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