#786AA6#786AA6

#786AA6 is a mid, moderate violet. Relative luminance 0.171; OKLCH L 56.2% C 0.092 H 293.9°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#786AA6
RGBrgb(120, 106, 166)
HSLhsl(254, 25%, 53%)
HSVhsv(254, 36%, 65%)
CMYKcmyk(27.7%, 36.1%, 0%, 34.9%)
CIE-LABlab(48.33, 19.03, -30.29)
CIE-LCHlch(48.33, 35.77, 302.14°)
OKLaboklab(56.2% 0.0374 -0.0843)
OKLCHoklch(56.2% 0.092 293.9)
XYZxyz(19.7810, 17.0540, 38.3186)
Luminance0.1705 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786AA6 #98A66A
analogous
#6A7AA6 #786AA6 #966AA6
triadic
#786AA6 #A6786A #6AA678
tetradic
#786AA6 #A66A7A #98A66A #6AA696
square
#786AA6 #A66A7A #98A66A #6AA696
split-complementary
#786AA6 #A6966A #7AA66A
monochromatic
#41385E #5B4F84 #786AA6 #9B90BD #BDB7D4

Accessibility & contrast

On white

4.76
#786AA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#786AA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786AA6
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786AA6#FFFFFF#000000##FFFFFF
##786AA61.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A73A8
Deuteranopia (green-blind)
#5C72A4
Tritanopia (blue-blind)
#6E7480
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #786aa6;
/* rgb */ color: rgb(120, 106, 166);
/* oklch */ color: oklch(56.2% 0.092 293.9);
Tailwind
colors: {
  custom: {
    50: '#a094c0',
    500: '#786aa6',
    950: '#000000',
  },
}
SCSS
$custom: #786aa6;
$custom-light: #a094c0;
$custom-dark: #000000;
JSON
{
  "hex": "#786aa6",
  "rgb": {
    "r": 120,
    "g": 106,
    "b": 166
  },
  "hsl": {
    "h": 254,
    "s": 25.21,
    "l": 53.333
  },
  "oklch": {
    "l": 0.562,
    "c": 0.09223,
    "h": 293.9
  },
  "luminance": 0.17054
}

Semantic roles & 50–950 ramp

primary
#786AA6
secondary
#BDC3A9
accent
#C266AC
background
#F9F9FB
surface
#F2F1F7
border
#CCCBD0
text
#0F0D12
muted
#7E7E81

Preview Lab

Preview with #786AA6

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

Preview Lab → · Contrast checker → · Palette generator →

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