#786AAF#786AAF

#786AAF is a mid, moderate violet. Relative luminance 0.174; OKLCH L 56.7% C 0.105 H 292.0°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#786AAF
RGBrgb(120, 106, 175)
HSLhsl(252, 30%, 55%)
HSVhsv(252, 39%, 69%)
CMYKcmyk(31.4%, 39.4%, 0%, 31.4%)
CIE-LABlab(48.76, 21.40, -34.88)
CIE-LCHlch(48.76, 40.92, 301.52°)
OKLaboklab(56.67% 0.0394 -0.0976)
OKLCHoklch(56.67% 0.105 292)
XYZxyz(20.6357, 17.3959, 42.8197)
Luminance0.1740 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786AAF #A1AF6A
analogous
#6A7EAF #786AAF #9B6AAF
triadic
#786AAF #AF786A #6AAF78
tetradic
#786AAF #AF6A7E #A1AF6A #6AAF9B
square
#786AAF #AF6A7E #A1AF6A #6AAF9B
split-complementary
#786AAF #AF9B6A #7EAF6A
monochromatic
#413767 #5A4D8F #786AAF #9C92C4 #C0BADA

Accessibility & contrast

On white

4.69
#786AAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#786AAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786AAF
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786AAF#FFFFFF#000000##FFFFFF
##786AAF1.004.694.484.69
#FFFFFF4.691.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5675B2
Deuteranopia (green-blind)
#5773AD
Tritanopia (blue-blind)
#6B7684
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #786aaf;
/* rgb */ color: rgb(120, 106, 175);
/* oklch */ color: oklch(56.7% 0.105 292.0);
Tailwind
colors: {
  custom: {
    50: '#a194c7',
    500: '#786aaf',
    950: '#000000',
  },
}
SCSS
$custom: #786aaf;
$custom-light: #a194c7;
$custom-dark: #000000;
JSON
{
  "hex": "#786aaf",
  "rgb": {
    "r": 120,
    "g": 106,
    "b": 175
  },
  "hsl": {
    "h": 252.174,
    "s": 30.131,
    "l": 55.098
  },
  "oklch": {
    "l": 0.56665,
    "c": 0.10523,
    "h": 292
  },
  "luminance": 0.17396
}

Semantic roles & 50–950 ramp

primary
#786AAF
secondary
#C3C9AC
accent
#C661B2
background
#FAF9FC
surface
#F3F1F8
border
#CDCBD1
text
#0F0D13
muted
#7F7E82

Preview Lab

Preview with #786AAF

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

Preview Lab → · Contrast checker → · Palette generator →

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