#786CA3#786CA3

#786CA3 is a mid, moderate violet. Relative luminance 0.174; OKLCH L 56.5% C 0.085 H 293.5°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#786CA3
RGBrgb(120, 108, 163)
HSLhsl(253, 23%, 53%)
HSVhsv(253, 34%, 64%)
CMYKcmyk(26.4%, 33.7%, 0%, 36.1%)
CIE-LABlab(48.71, 17.05, -27.93)
CIE-LCHlch(48.71, 32.73, 301.40°)
OKLaboklab(56.45% 0.0337 -0.0775)
OKLCHoklch(56.45% 0.085 293.5)
XYZxyz(19.7176, 17.3623, 36.9557)
Luminance0.1736 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786CA3 #97A36C
analogous
#6C7BA3 #786CA3 #936CA3
triadic
#786CA3 #A3786C #6CA378
tetradic
#786CA3 #A36C7B #97A36C #6CA393
square
#786CA3 #A36C7B #97A36C #6CA393
split-complementary
#786CA3 #A3936C #7BA36C
monochromatic
#41395B #5B5181 #786CA3 #9B92BB #BDB7D2

Accessibility & contrast

On white

4.70
#786CA3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#786CA3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786CA3
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786CA3#FFFFFF#000000##FFFFFF
##786CA31.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E74A5
Deuteranopia (green-blind)
#5F73A2
Tritanopia (blue-blind)
#6F7580
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #786ca3;
/* rgb */ color: rgb(120, 108, 163);
/* oklch */ color: oklch(56.5% 0.085 293.5);
Tailwind
colors: {
  custom: {
    50: '#a096be',
    500: '#786ca3',
    950: '#000000',
  },
}
SCSS
$custom: #786ca3;
$custom-light: #a096be;
$custom-dark: #000000;
JSON
{
  "hex": "#786ca3",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 163
  },
  "hsl": {
    "h": 253.091,
    "s": 23.013,
    "l": 53.137
  },
  "oklch": {
    "l": 0.5645,
    "c": 0.08454,
    "h": 293.5
  },
  "luminance": 0.17363
}

Semantic roles & 50–950 ramp

primary
#786CA3
secondary
#BCC1AA
accent
#C068AC
background
#F9F9FB
surface
#F2F1F7
border
#CCCBD0
text
#0F0D12
muted
#7E7E81

Preview Lab

Preview with #786CA3

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

Preview Lab → · Contrast checker → · Palette generator →

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