#786CA5#786CA5

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

Color values

HEX#786CA5
RGBrgb(120, 108, 165)
HSLhsl(253, 24%, 54%)
HSVhsv(253, 35%, 65%)
CMYKcmyk(27.3%, 34.5%, 0%, 35.3%)
CIE-LABlab(48.80, 17.57, -28.97)
CIE-LCHlch(48.80, 33.88, 301.23°)
OKLaboklab(56.55% 0.0343 -0.0805)
OKLCHoklch(56.55% 0.087 293.1)
XYZxyz(19.8982, 17.4345, 37.9069)
Luminance0.1744 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786CA5 #99A56C
analogous
#6C7CA5 #786CA5 #946CA5
triadic
#786CA5 #A5786C #6CA578
tetradic
#786CA5 #A56C7C #99A56C #6CA594
square
#786CA5 #A56C7C #99A56C #6CA594
split-complementary
#786CA5 #A5946C #7CA56C
monochromatic
#41395D #5B5083 #786CA5 #9B92BC #BEB8D3

Accessibility & contrast

On white

4.68
#786CA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.49
#786CA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786CA5
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786CA5#FFFFFF#000000##FFFFFF
##786CA51.004.684.494.68
#FFFFFF4.681.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D75A7
Deuteranopia (green-blind)
#5E73A4
Tritanopia (blue-blind)
#6E7681
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #786ca5;
/* rgb */ color: rgb(120, 108, 165);
/* oklch */ color: oklch(56.5% 0.087 293.1);
Tailwind
colors: {
  custom: {
    50: '#a096c0',
    500: '#786ca5',
    950: '#000000',
  },
}
SCSS
$custom: #786ca5;
$custom-light: #a096c0;
$custom-dark: #000000;
JSON
{
  "hex": "#786ca5",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 165
  },
  "hsl": {
    "h": 252.632,
    "s": 24.051,
    "l": 53.529
  },
  "oklch": {
    "l": 0.56548,
    "c": 0.08746,
    "h": 293.1
  },
  "luminance": 0.17435
}

Semantic roles & 50–950 ramp

primary
#786CA5
secondary
#BDC3AA
accent
#C167AE
background
#F9F9FB
surface
#F2F2F7
border
#CCCCD0
text
#0F0D12
muted
#7E7E81

Preview Lab

Preview with #786CA5

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

Preview Lab → · Contrast checker → · Palette generator →

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