#786FA4#786FA4

#786FA4 is a mid, moderate violet. Relative luminance 0.180; OKLCH L 57.1% C 0.081 H 291.4°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#786FA4
RGBrgb(120, 111, 164)
HSLhsl(250, 23%, 54%)
HSVhsv(250, 32%, 64%)
CMYKcmyk(26.8%, 32.3%, 0%, 35.7%)
CIE-LABlab(49.55, 15.50, -27.22)
CIE-LCHlch(49.55, 31.33, 299.66°)
OKLaboklab(57.1% 0.0296 -0.0755)
OKLCHoklch(57.1% 0.081 291.4)
XYZxyz(20.1294, 18.0420, 37.5367)
Luminance0.1804 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786FA4 #9BA46F
analogous
#6F81A4 #786FA4 #936FA4
triadic
#786FA4 #A4786F #6FA478
tetradic
#786FA4 #A46F81 #9BA46F #6FA493
square
#786FA4 #A46F81 #9BA46F #6FA493
split-complementary
#786FA4 #A4936F #81A46F
monochromatic
#413B5E #5B5383 #786FA4 #9B95BC #BEBAD3

Accessibility & contrast

On white

4.56
#786FA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.61
#786FA4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786FA4
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786FA4#FFFFFF#000000##000000
##786FA41.004.564.614.61
#FFFFFF4.561.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6177A6
Deuteranopia (green-blind)
#6275A3
Tritanopia (blue-blind)
#6E7882
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #786fa4;
/* rgb */ color: rgb(120, 111, 164);
/* oklch */ color: oklch(57.1% 0.081 291.4);
Tailwind
colors: {
  custom: {
    50: '#a098bf',
    500: '#786fa4',
    950: '#000000',
  },
}
SCSS
$custom: #786fa4;
$custom-light: #a098bf;
$custom-dark: #000000;
JSON
{
  "hex": "#786fa4",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 164
  },
  "hsl": {
    "h": 250.189,
    "s": 22.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.57104,
    "c": 0.08107,
    "h": 291.4
  },
  "luminance": 0.18042
}

Semantic roles & 50–950 ramp

primary
#786FA4
secondary
#BFC3AC
accent
#BF69B0
background
#F9F9FB
surface
#F2F2F7
border
#CCCCD0
text
#0F0D12
muted
#7E7E81

Preview Lab

Preview with #786FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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