#786CA4#786CA4

#786CA4 is a mid, moderate violet. Relative luminance 0.174; OKLCH L 56.5% C 0.086 H 293.3°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#786CA4
RGBrgb(120, 108, 164)
HSLhsl(253, 24%, 53%)
HSVhsv(253, 34%, 64%)
CMYKcmyk(26.8%, 34.1%, 0%, 35.7%)
CIE-LABlab(48.76, 17.31, -28.45)
CIE-LCHlch(48.76, 33.30, 301.31°)
OKLaboklab(56.5% 0.034 -0.079)
OKLCHoklch(56.5% 0.086 293.3)
XYZxyz(19.8075, 17.3983, 37.4294)
Luminance0.1740 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786CA4 #98A46C
analogous
#6C7CA4 #786CA4 #946CA4
triadic
#786CA4 #A4786C #6CA478
tetradic
#786CA4 #A46C7C #98A46C #6CA494
square
#786CA4 #A46C7C #98A46C #6CA494
split-complementary
#786CA4 #A4946C #7CA46C
monochromatic
#41395C #5B5182 #786CA4 #9B92BB #BDB8D3

Accessibility & contrast

On white

4.69
#786CA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#786CA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786CA4
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786CA4#FFFFFF#000000##FFFFFF
##786CA41.004.694.484.69
#FFFFFF4.691.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D74A6
Deuteranopia (green-blind)
#5F73A3
Tritanopia (blue-blind)
#6F7680
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #786ca4;
/* rgb */ color: rgb(120, 108, 164);
/* oklch */ color: oklch(56.5% 0.086 293.3);
Tailwind
colors: {
  custom: {
    50: '#a096bf',
    500: '#786ca4',
    950: '#000000',
  },
}
SCSS
$custom: #786ca4;
$custom-light: #a096bf;
$custom-dark: #000000;
JSON
{
  "hex": "#786ca4",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 164
  },
  "hsl": {
    "h": 252.857,
    "s": 23.529,
    "l": 53.333
  },
  "oklch": {
    "l": 0.56499,
    "c": 0.086,
    "h": 293.3
  },
  "luminance": 0.17399
}

Semantic roles & 50–950 ramp

primary
#786CA4
secondary
#BDC2AA
accent
#C068AD
background
#F9F9FB
surface
#F2F2F7
border
#CCCCD0
text
#0F0D12
muted
#7E7E81

Preview Lab

Preview with #786CA4

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

Preview Lab → · Contrast checker → · Palette generator →

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