#786DA4#786DA4

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

Color values

HEX#786DA4
RGBrgb(120, 109, 164)
HSLhsl(252, 23%, 54%)
HSVhsv(252, 34%, 64%)
CMYKcmyk(26.8%, 33.5%, 0%, 35.7%)
CIE-LABlab(49.02, 16.71, -28.04)
CIE-LCHlch(49.02, 32.64, 300.78°)
OKLaboklab(56.7% 0.0325 -0.0778)
OKLCHoklch(56.7% 0.084 292.7)
XYZxyz(19.9136, 17.6104, 37.4648)
Luminance0.1761 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786DA4 #99A46D
analogous
#6D7DA4 #786DA4 #936DA4
triadic
#786DA4 #A4786D #6DA478
tetradic
#786DA4 #A46D7D #99A46D #6DA493
square
#786DA4 #A46D7D #99A46D #6DA493
split-complementary
#786DA4 #A4936D #7DA46D
monochromatic
#413A5D #5B5182 #786DA4 #9B93BB #BEB8D3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##786DA4#FFFFFF#000000##FFFFFF
##786DA41.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)
#5F75A6
Deuteranopia (green-blind)
#6074A3
Tritanopia (blue-blind)
#6F7681
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #786da4;
/* rgb */ color: rgb(120, 109, 164);
/* oklch */ color: oklch(56.7% 0.084 292.7);
Tailwind
colors: {
  custom: {
    50: '#a096bf',
    500: '#786da4',
    950: '#000000',
  },
}
SCSS
$custom: #786da4;
$custom-light: #a096bf;
$custom-dark: #000000;
JSON
{
  "hex": "#786da4",
  "rgb": {
    "r": 120,
    "g": 109,
    "b": 164
  },
  "hsl": {
    "h": 252,
    "s": 23.207,
    "l": 53.529
  },
  "oklch": {
    "l": 0.567,
    "c": 0.08434,
    "h": 292.7
  },
  "luminance": 0.17611
}

Semantic roles & 50–950 ramp

primary
#786DA4
secondary
#BDC2AB
accent
#C068AE
background
#F9F9FB
surface
#F2F2F7
border
#CCCCD0
text
#0F0D12
muted
#7E7E81

Preview Lab

Preview with #786DA4

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

Preview Lab → · Contrast checker → · Palette generator →

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