#786DAC#786DAC

#786DAC is a mid, moderate violet. Relative luminance 0.179; OKLCH L 57.1% C 0.096 H 291.0°. Best body text is #000000 at 4.58:1 contrast (WCAG AA passes).

Color values

HEX#786DAC
RGBrgb(120, 109, 172)
HSLhsl(250, 28%, 55%)
HSVhsv(250, 37%, 67%)
CMYKcmyk(30.2%, 36.6%, 0%, 32.5%)
CIE-LABlab(49.38, 18.79, -32.15)
CIE-LCHlch(49.38, 37.24, 300.31°)
OKLaboklab(57.1% 0.0345 -0.0896)
OKLCHoklch(57.1% 0.096 291)
XYZxyz(20.6589, 17.9085, 41.3900)
Luminance0.1791 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786DAC #A1AC6D
analogous
#6D82AC #786DAC #976DAC
triadic
#786DAC #AC786D #6DAC78
tetradic
#786DAC #AC6D82 #A1AC6D #6DAC97
square
#786DAC #AC6D82 #A1AC6D #6DAC97
split-complementary
#786DAC #AC976D #82AC6D
monochromatic
#413965 #5A508C #786DAC #9C94C2 #C0BBD8

Accessibility & contrast

On white

4.58
#786DAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#786DAC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786DAC
4.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786DAC#FFFFFF#000000##000000
##786DAC1.004.584.584.58
#FFFFFF4.581.0021.0021.00
#0000004.5821.001.001.00
##0000004.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B76AE
Deuteranopia (green-blind)
#5C74AA
Tritanopia (blue-blind)
#6C7884
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #786dac;
/* rgb */ color: rgb(120, 109, 172);
/* oklch */ color: oklch(57.1% 0.096 291.0);
Tailwind
colors: {
  custom: {
    50: '#a097c5',
    500: '#786dac',
    950: '#000000',
  },
}
SCSS
$custom: #786dac;
$custom-light: #a097c5;
$custom-dark: #000000;
JSON
{
  "hex": "#786dac",
  "rgb": {
    "r": 120,
    "g": 109,
    "b": 172
  },
  "hsl": {
    "h": 250.476,
    "s": 27.511,
    "l": 55.098
  },
  "oklch": {
    "l": 0.57099,
    "c": 0.09606,
    "h": 291
  },
  "luminance": 0.17909
}

Semantic roles & 50–950 ramp

primary
#786DAC
secondary
#C3C8AD
accent
#C464B3
background
#FAF9FC
surface
#F3F2F8
border
#CDCCD1
text
#0F0D13
muted
#7F7E82

Preview Lab

Preview with #786DAC

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

Preview Lab → · Contrast checker → · Palette generator →

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