#786CA6#786CA6

#786CA6 is a mid, moderate violet. Relative luminance 0.175; OKLCH L 56.6% C 0.089 H 292.8°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#786CA6
RGBrgb(120, 108, 166)
HSLhsl(252, 25%, 54%)
HSVhsv(252, 35%, 65%)
CMYKcmyk(27.7%, 34.9%, 0%, 34.9%)
CIE-LABlab(48.85, 17.82, -29.48)
CIE-LCHlch(48.85, 34.45, 301.16°)
OKLaboklab(56.6% 0.0345 -0.082)
OKLCHoklch(56.6% 0.089 292.8)
XYZxyz(19.9895, 17.4711, 38.3881)
Luminance0.1747 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786CA6 #9AA66C
analogous
#6C7DA6 #786CA6 #956CA6
triadic
#786CA6 #A6786C #6CA678
tetradic
#786CA6 #A66C7D #9AA66C #6CA695
square
#786CA6 #A66C7D #9AA66C #6CA695
split-complementary
#786CA6 #A6956C #7DA66C
monochromatic
#41395E #5B5085 #786CA6 #9B92BD #BEB8D4

Accessibility & contrast

On white

4.67
#786CA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #786CA6
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786CA6#FFFFFF#000000##FFFFFF
##786CA61.004.674.494.67
#FFFFFF4.671.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #786ca6;
/* rgb */ color: rgb(120, 108, 166);
/* oklch */ color: oklch(56.6% 0.089 292.8);
Tailwind
colors: {
  custom: {
    50: '#a096c0',
    500: '#786ca6',
    950: '#000000',
  },
}
SCSS
$custom: #786ca6;
$custom-light: #a096c0;
$custom-dark: #000000;
JSON
{
  "hex": "#786ca6",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 166
  },
  "hsl": {
    "h": 252.414,
    "s": 24.576,
    "l": 53.725
  },
  "oklch": {
    "l": 0.56597,
    "c": 0.08893,
    "h": 292.8
  },
  "luminance": 0.17471
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #786CA6

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

Preview Lab → · Contrast checker → · Palette generator →

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