#786AA4#786AA4

#786AA4 is a mid, moderate violet. Relative luminance 0.170; OKLCH L 56.1% C 0.089 H 294.4°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#786AA4
RGBrgb(120, 106, 164)
HSLhsl(254, 24%, 53%)
HSVhsv(254, 35%, 64%)
CMYKcmyk(26.8%, 35.4%, 0%, 35.7%)
CIE-LABlab(48.24, 18.51, -29.26)
CIE-LCHlch(48.24, 34.63, 302.32°)
OKLaboklab(56.1% 0.0369 -0.0813)
OKLCHoklch(56.1% 0.089 294.4)
XYZxyz(19.5990, 16.9812, 37.3599)
Luminance0.1698 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786AA4 #96A46A
analogous
#6A79A4 #786AA4 #956AA4
triadic
#786AA4 #A4786A #6AA478
tetradic
#786AA4 #A46A79 #96A46A #6AA495
square
#786AA4 #A46A79 #96A46A #6AA495
split-complementary
#786AA4 #A4956A #79A46A
monochromatic
#41385C #5B4F82 #786AA4 #9A90BB #BDB6D2

Accessibility & contrast

On white

4.78
#786AA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#786AA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786AA4
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786AA4#FFFFFF#000000##FFFFFF
##786AA41.004.784.404.78
#FFFFFF4.781.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B73A6
Deuteranopia (green-blind)
#5D72A2
Tritanopia (blue-blind)
#6F747F
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #786aa4;
/* rgb */ color: rgb(120, 106, 164);
/* oklch */ color: oklch(56.1% 0.089 294.4);
Tailwind
colors: {
  custom: {
    50: '#a094bf',
    500: '#786aa4',
    950: '#000000',
  },
}
SCSS
$custom: #786aa4;
$custom-light: #a094bf;
$custom-dark: #000000;
JSON
{
  "hex": "#786aa4",
  "rgb": {
    "r": 120,
    "g": 106,
    "b": 164
  },
  "hsl": {
    "h": 254.483,
    "s": 24.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.561,
    "c": 0.08932,
    "h": 294.4
  },
  "luminance": 0.16981
}

Semantic roles & 50–950 ramp

primary
#786AA4
secondary
#BBC1A8
accent
#C167AB
background
#F9F9FB
surface
#F2F1F7
border
#CCCBD0
text
#0F0D12
muted
#7E7E81

Preview Lab

Preview with #786AA4

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

Preview Lab → · Contrast checker → · Palette generator →

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