#786AA1#786AA1

#786AA1 is a mid, moderate violet. Relative luminance 0.169; OKLCH L 56.0% C 0.085 H 295.2°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#786AA1
RGBrgb(120, 106, 161)
HSLhsl(255, 23%, 52%)
HSVhsv(255, 34%, 63%)
CMYKcmyk(25.5%, 34.2%, 0%, 36.9%)
CIE-LABlab(48.10, 17.75, -27.71)
CIE-LCHlch(48.10, 32.91, 302.63°)
OKLaboklab(55.95% 0.0362 -0.0769)
OKLCHoklch(55.95% 0.085 295.2)
XYZxyz(19.3313, 16.8741, 35.9499)
Luminance0.1687 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786AA1 #93A16A
analogous
#6A77A1 #786AA1 #946AA1
triadic
#786AA1 #A1786A #6AA178
tetradic
#786AA1 #A16A77 #93A16A #6AA194
square
#786AA1 #A16A77 #93A16A #6AA194
split-complementary
#786AA1 #A1946A #77A16A
monochromatic
#403859 #5B507E #786AA1 #9A90B9 #BCB5D0

Accessibility & contrast

On white

4.80
#786AA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#786AA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786AA1
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786AA1#FFFFFF#000000##FFFFFF
##786AA11.004.804.374.80
#FFFFFF4.801.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C73A3
Deuteranopia (green-blind)
#5E71A0
Tritanopia (blue-blind)
#70737E
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #786aa1;
/* rgb */ color: rgb(120, 106, 161);
/* oklch */ color: oklch(56.0% 0.085 295.2);
Tailwind
colors: {
  custom: {
    50: '#a094bd',
    500: '#786aa1',
    950: '#000000',
  },
}
SCSS
$custom: #786aa1;
$custom-light: #a094bd;
$custom-dark: #000000;
JSON
{
  "hex": "#786aa1",
  "rgb": {
    "r": 120,
    "g": 106,
    "b": 161
  },
  "hsl": {
    "h": 255.273,
    "s": 22.634,
    "l": 52.353
  },
  "oklch": {
    "l": 0.55952,
    "c": 0.08495,
    "h": 295.2
  },
  "luminance": 0.16874
}

Semantic roles & 50–950 ramp

primary
#786AA1
secondary
#B9BFA7
accent
#BF69A9
background
#F9F9FB
surface
#F2F1F6
border
#CCCBD0
text
#0F0D12
muted
#7E7E81

Preview Lab

Preview with #786AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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