#786AB5#786AB5

#786AB5 is a mid, moderate violet. Relative luminance 0.176; OKLCH L 57.0% C 0.114 H 290.9°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#786AB5
RGBrgb(120, 106, 181)
HSLhsl(251, 34%, 56%)
HSVhsv(251, 41%, 71%)
CMYKcmyk(33.7%, 41.4%, 0%, 29%)
CIE-LABlab(49.05, 23.01, -37.90)
CIE-LCHlch(49.05, 44.34, 301.26°)
OKLaboklab(56.99% 0.0406 -0.1063)
OKLCHoklch(56.99% 0.114 290.9)
XYZxyz(21.2381, 17.6369, 45.9924)
Luminance0.1764 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786AB5 #A7B56A
analogous
#6A82B5 #786AB5 #9E6AB5
triadic
#786AB5 #B5786A #6AB578
tetradic
#786AB5 #B56A82 #A7B56A #6AB59E
square
#786AB5 #B56A82 #A7B56A #6AB59E
split-complementary
#786AB5 #B59E6A #82B56A
monochromatic
#41376E #594B97 #786AB5 #9D93C9 #C2BCDE

Accessibility & contrast

On white

4.64
#786AB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#786AB5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #786AB5
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786AB5#FFFFFF#000000##FFFFFF
##786AB51.004.644.534.64
#FFFFFF4.641.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5376B8
Deuteranopia (green-blind)
#5473B3
Tritanopia (blue-blind)
#697887
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #786ab5;
/* rgb */ color: rgb(120, 106, 181);
/* oklch */ color: oklch(57.0% 0.114 290.9);
Tailwind
colors: {
  custom: {
    50: '#a194cb',
    500: '#786ab5',
    950: '#000000',
  },
}
SCSS
$custom: #786ab5;
$custom-light: #a194cb;
$custom-dark: #000000;
JSON
{
  "hex": "#786ab5",
  "rgb": {
    "r": 120,
    "g": 106,
    "b": 181
  },
  "hsl": {
    "h": 251.2,
    "s": 33.632,
    "l": 56.275
  },
  "oklch": {
    "l": 0.56989,
    "c": 0.11383,
    "h": 290.9
  },
  "luminance": 0.17637
}

Semantic roles & 50–950 ramp

primary
#786AB5
secondary
#C7CDAE
accent
#CA5EB6
background
#FAF9FC
surface
#F4F1F8
border
#CECBD1
text
#0F0D13
muted
#7F7E82

Preview Lab

Preview with #786AB5

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

Preview Lab → · Contrast checker → · Palette generator →

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