#786BAD#786BAD

#786BAD is a mid, moderate violet. Relative luminance 0.175; OKLCH L 56.8% C 0.101 H 291.9°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#786BAD
RGBrgb(120, 107, 173)
HSLhsl(252, 29%, 55%)
HSVhsv(252, 38%, 68%)
CMYKcmyk(30.6%, 38.2%, 0%, 32.2%)
CIE-LABlab(48.92, 20.26, -33.47)
CIE-LCHlch(48.92, 39.12, 301.19°)
OKLaboklab(56.76% 0.0376 -0.0935)
OKLCHoklch(56.76% 0.101 291.9)
XYZxyz(20.5443, 17.5252, 41.8274)
Luminance0.1753 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786BAD #A0AD6B
analogous
#6B7FAD #786BAD #996BAD
triadic
#786BAD #AD786B #6BAD78
tetradic
#786BAD #AD6B7F #A0AD6B #6BAD99
square
#786BAD #AD6B7F #A0AD6B #6BAD99
split-complementary
#786BAD #AD996B #7FAD6B
monochromatic
#413865 #5A4E8D #786BAD #9C92C3 #C0BAD9

Accessibility & contrast

On white

4.66
#786BAD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#786BAD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #786BAD
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786BAD#FFFFFF#000000##FFFFFF
##786BAD1.004.664.514.66
#FFFFFF4.661.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5875B0
Deuteranopia (green-blind)
#5973AB
Tritanopia (blue-blind)
#6C7784
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #786bad;
/* rgb */ color: rgb(120, 107, 173);
/* oklch */ color: oklch(56.8% 0.101 291.9);
Tailwind
colors: {
  custom: {
    50: '#a195c5',
    500: '#786bad',
    950: '#000000',
  },
}
SCSS
$custom: #786bad;
$custom-light: #a195c5;
$custom-dark: #000000;
JSON
{
  "hex": "#786bad",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 173
  },
  "hsl": {
    "h": 251.818,
    "s": 28.696,
    "l": 54.902
  },
  "oklch": {
    "l": 0.56756,
    "c": 0.10074,
    "h": 291.9
  },
  "luminance": 0.17526
}

Semantic roles & 50–950 ramp

primary
#786BAD
secondary
#C2C8AC
accent
#C563B2
background
#FAF9FC
surface
#F3F1F8
border
#CDCBD1
text
#0F0D13
muted
#7F7E82

Preview Lab

Preview with #786BAD

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

Preview Lab → · Contrast checker → · Palette generator →

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