#786CA9#786CA9

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

Color values

HEX#786CA9
RGBrgb(120, 108, 169)
HSLhsl(252, 26%, 54%)
HSVhsv(252, 36%, 66%)
CMYKcmyk(29%, 36.1%, 0%, 33.7%)
CIE-LABlab(48.99, 18.61, -31.02)
CIE-LCHlch(48.99, 36.17, 300.96°)
OKLaboklab(56.75% 0.0352 -0.0864)
OKLCHoklch(56.75% 0.093 292.2)
XYZxyz(20.2679, 17.5824, 39.8543)
Luminance0.1758 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786CA9 #9DA96C
analogous
#6C7FA9 #786CA9 #976CA9
triadic
#786CA9 #A9786C #6CA978
tetradic
#786CA9 #A96C7F #9DA96C #6CA997
square
#786CA9 #A96C7F #9DA96C #6CA997
split-complementary
#786CA9 #A9976C #7FA96C
monochromatic
#413962 #5B5088 #786CA9 #9B93C0 #BFB9D6

Accessibility & contrast

On white

4.65
#786CA9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #786CA9
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786CA9#FFFFFF#000000##FFFFFF
##786CA91.004.654.524.65
#FFFFFF4.651.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B75AB
Deuteranopia (green-blind)
#5C73A7
Tritanopia (blue-blind)
#6D7783
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #786ca9;
/* rgb */ color: rgb(120, 108, 169);
/* oklch */ color: oklch(56.7% 0.093 292.2);
Tailwind
colors: {
  custom: {
    50: '#a096c3',
    500: '#786ca9',
    950: '#000000',
  },
}
SCSS
$custom: #786ca9;
$custom-light: #a096c3;
$custom-dark: #000000;
JSON
{
  "hex": "#786ca9",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 169
  },
  "hsl": {
    "h": 251.803,
    "s": 26.18,
    "l": 54.314
  },
  "oklch": {
    "l": 0.56748,
    "c": 0.0933,
    "h": 292.2
  },
  "luminance": 0.17583
}

Semantic roles & 50–950 ramp

primary
#786CA9
secondary
#C0C5AB
accent
#C365B0
background
#F9F9FC
surface
#F2F2F8
border
#CCCCD1
text
#0F0D12
muted
#7E7E81

Preview Lab

Preview with #786CA9

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

Preview Lab → · Contrast checker → · Palette generator →

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