#786DA5#786DA5

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

Color values

HEX#786DA5
RGBrgb(120, 109, 165)
HSLhsl(252, 24%, 54%)
HSVhsv(252, 34%, 65%)
CMYKcmyk(27.3%, 33.9%, 0%, 35.3%)
CIE-LABlab(49.06, 16.96, -28.56)
CIE-LCHlch(49.06, 33.22, 300.71°)
OKLaboklab(56.75% 0.0328 -0.0793)
OKLCHoklch(56.75% 0.086 292.5)
XYZxyz(20.0042, 17.6467, 37.9422)
Luminance0.1765 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786DA5 #9AA56D
analogous
#6D7EA5 #786DA5 #946DA5
triadic
#786DA5 #A5786D #6DA578
tetradic
#786DA5 #A56D7E #9AA56D #6DA594
square
#786DA5 #A56D7E #9AA56D #6DA594
split-complementary
#786DA5 #A5946D #7EA56D
monochromatic
#413A5E #5B5184 #786DA5 #9B93BC #BEB9D4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##786DA5#FFFFFF#000000##FFFFFF
##786DA51.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)
#5E75A7
Deuteranopia (green-blind)
#5F74A4
Tritanopia (blue-blind)
#6E7781
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #786da5;
/* rgb */ color: rgb(120, 109, 165);
/* oklch */ color: oklch(56.7% 0.086 292.5);
Tailwind
colors: {
  custom: {
    50: '#a096c0',
    500: '#786da5',
    950: '#000000',
  },
}
SCSS
$custom: #786da5;
$custom-light: #a096c0;
$custom-dark: #000000;
JSON
{
  "hex": "#786da5",
  "rgb": {
    "r": 120,
    "g": 109,
    "b": 165
  },
  "hsl": {
    "h": 251.786,
    "s": 23.729,
    "l": 53.725
  },
  "oklch": {
    "l": 0.56749,
    "c": 0.08581,
    "h": 292.5
  },
  "luminance": 0.17647
}

Semantic roles & 50–950 ramp

primary
#786DA5
secondary
#BEC3AB
accent
#C068AF
background
#F9F9FB
surface
#F2F2F7
border
#CCCCD0
text
#0F0D12
muted
#7E7E81

Preview Lab

Preview with #786DA5

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

Preview Lab → · Contrast checker → · Palette generator →

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