#786AB3#786AB3

#786AB3 is a mid, moderate violet. Relative luminance 0.176; OKLCH L 56.9% C 0.111 H 291.3°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#786AB3
RGBrgb(120, 106, 179)
HSLhsl(252, 32%, 56%)
HSVhsv(252, 41%, 70%)
CMYKcmyk(33%, 40.8%, 0%, 29.8%)
CIE-LABlab(48.95, 22.47, -36.90)
CIE-LCHlch(48.95, 43.20, 301.34°)
OKLaboklab(56.88% 0.0403 -0.1034)
OKLCHoklch(56.88% 0.111 291.3)
XYZxyz(21.0343, 17.5554, 44.9194)
Luminance0.1756 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786AB3 #A5B36A
analogous
#6A80B3 #786AB3 #9C6AB3
triadic
#786AB3 #B3786A #6AB378
tetradic
#786AB3 #B36A80 #A5B36A #6AB39C
square
#786AB3 #B36A80 #A5B36A #6AB39C
split-complementary
#786AB3 #B39C6A #80B36A
monochromatic
#41376C #5A4C94 #786AB3 #9D93C8 #C1BBDC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##786AB3#FFFFFF#000000##FFFFFF
##786AB31.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)
#5476B6
Deuteranopia (green-blind)
#5573B1
Tritanopia (blue-blind)
#6A7786
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #786ab3;
/* rgb */ color: rgb(120, 106, 179);
/* oklch */ color: oklch(56.9% 0.111 291.3);
Tailwind
colors: {
  custom: {
    50: '#a194ca',
    500: '#786ab3',
    950: '#000000',
  },
}
SCSS
$custom: #786ab3;
$custom-light: #a194ca;
$custom-dark: #000000;
JSON
{
  "hex": "#786ab3",
  "rgb": {
    "r": 120,
    "g": 106,
    "b": 179
  },
  "hsl": {
    "h": 251.507,
    "s": 32.444,
    "l": 55.882
  },
  "oklch": {
    "l": 0.5688,
    "c": 0.11097,
    "h": 291.3
  },
  "luminance": 0.17556
}

Semantic roles & 50–950 ramp

primary
#786AB3
secondary
#C6CCAD
accent
#C95FB4
background
#FAF9FC
surface
#F4F1F8
border
#CECBD1
text
#0F0D13
muted
#7F7E82

Preview Lab

Preview with #786AB3

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

Preview Lab → · Contrast checker → · Palette generator →

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