#786CAE#786CAE

#786CAE is a mid, moderate violet. Relative luminance 0.178; OKLCH L 57.0% C 0.101 H 291.2°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#786CAE
RGBrgb(120, 108, 174)
HSLhsl(251, 29%, 55%)
HSVhsv(251, 38%, 68%)
CMYKcmyk(31%, 37.9%, 0%, 31.8%)
CIE-LABlab(49.22, 19.93, -33.57)
CIE-LCHlch(49.22, 39.04, 300.69°)
OKLaboklab(57% 0.0364 -0.0938)
OKLCHoklch(57% 0.101 291.2)
XYZxyz(20.7463, 17.7738, 42.3738)
Luminance0.1777 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786CAE #A2AE6C
analogous
#6C81AE #786CAE #996CAE
triadic
#786CAE #AE786C #6CAE78
tetradic
#786CAE #AE6C81 #A2AE6C #6CAE99
square
#786CAE #AE6C81 #A2AE6C #6CAE99
split-complementary
#786CAE #AE996C #81AE6C
monochromatic
#413967 #5A4E8E #786CAE #9C93C4 #C0BBD9

Accessibility & contrast

On white

4.61
#786CAE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#786CAE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #786CAE
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786CAE#FFFFFF#000000##FFFFFF
##786CAE1.004.614.554.61
#FFFFFF4.611.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5976B1
Deuteranopia (green-blind)
#5A74AC
Tritanopia (blue-blind)
#6C7885
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #786cae;
/* rgb */ color: rgb(120, 108, 174);
/* oklch */ color: oklch(57.0% 0.101 291.2);
Tailwind
colors: {
  custom: {
    50: '#a196c6',
    500: '#786cae',
    950: '#000000',
  },
}
SCSS
$custom: #786cae;
$custom-light: #a196c6;
$custom-dark: #000000;
JSON
{
  "hex": "#786cae",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 174
  },
  "hsl": {
    "h": 250.909,
    "s": 28.947,
    "l": 55.294
  },
  "oklch": {
    "l": 0.57004,
    "c": 0.10057,
    "h": 291.2
  },
  "luminance": 0.17774
}

Semantic roles & 50–950 ramp

primary
#786CAE
secondary
#C4C9AD
accent
#C563B3
background
#FAF9FC
surface
#F3F2F8
border
#CDCCD1
text
#0F0D13
muted
#7F7E82

Preview Lab

Preview with #786CAE

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

Preview Lab → · Contrast checker → · Palette generator →

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