#786BAE#786BAE

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

Color values

HEX#786BAE
RGBrgb(120, 107, 174)
HSLhsl(252, 29%, 55%)
HSVhsv(252, 39%, 68%)
CMYKcmyk(31%, 38.5%, 0%, 31.8%)
CIE-LABlab(48.96, 20.53, -33.97)
CIE-LCHlch(48.96, 39.69, 301.14°)
OKLaboklab(56.81% 0.0378 -0.0949)
OKLCHoklch(56.81% 0.102 291.7)
XYZxyz(20.6415, 17.5641, 42.3389)
Luminance0.1756 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786BAE #A1AE6B
analogous
#6B7FAE #786BAE #9A6BAE
triadic
#786BAE #AE786B #6BAE78
tetradic
#786BAE #AE6B7F #A1AE6B #6BAE9A
square
#786BAE #AE6B7F #A1AE6B #6BAE9A
split-complementary
#786BAE #AE9A6B #7FAE6B
monochromatic
#413867 #5A4E8E #786BAE #9C93C4 #C0BAD9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##786BAE#FFFFFF#000000##FFFFFF
##786BAE1.004.654.514.65
#FFFFFF4.651.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #786bae;
/* rgb */ color: rgb(120, 107, 174);
/* oklch */ color: oklch(56.8% 0.102 291.7);
Tailwind
colors: {
  custom: {
    50: '#a195c6',
    500: '#786bae',
    950: '#000000',
  },
}
SCSS
$custom: #786bae;
$custom-light: #a195c6;
$custom-dark: #000000;
JSON
{
  "hex": "#786bae",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 174
  },
  "hsl": {
    "h": 251.642,
    "s": 29.258,
    "l": 55.098
  },
  "oklch": {
    "l": 0.56808,
    "c": 0.10218,
    "h": 291.7
  },
  "luminance": 0.17564
}

Semantic roles & 50–950 ramp

primary
#786BAE
secondary
#C3C8AC
accent
#C662B2
background
#FAF9FC
surface
#F3F1F8
border
#CDCBD1
text
#0F0D13
muted
#7F7E82

Preview Lab

Preview with #786BAE

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

Preview Lab → · Contrast checker → · Palette generator →

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