#786CB3#786CB3

#786CB3 is a mid, moderate violet. Relative luminance 0.180; OKLCH L 57.3% C 0.108 H 290.3°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#786CB3
RGBrgb(120, 108, 179)
HSLhsl(250, 32%, 56%)
HSVhsv(250, 40%, 70%)
CMYKcmyk(33%, 39.7%, 0%, 29.8%)
CIE-LABlab(49.46, 21.27, -36.10)
CIE-LCHlch(49.46, 41.90, 300.50°)
OKLaboklab(57.27% 0.0375 -0.1011)
OKLCHoklch(57.27% 0.108 290.3)
XYZxyz(21.2429, 17.9724, 44.9889)
Luminance0.1797 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786CB3 #A7B36C
analogous
#6C84B3 #786CB3 #9C6CB3
triadic
#786CB3 #B3786C #6CB378
tetradic
#786CB3 #B36C84 #A7B36C #6CB39C
square
#786CB3 #B36C84 #A7B36C #6CB39C
split-complementary
#786CB3 #B39C6C #84B36C
monochromatic
#41386D #594D95 #786CB3 #9D94C8 #C2BDDD

Accessibility & contrast

On white

4.57
#786CB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#786CB3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786CB3
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786CB3#FFFFFF#000000##000000
##786CB31.004.574.594.59
#FFFFFF4.571.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5677B6
Deuteranopia (green-blind)
#5774B1
Tritanopia (blue-blind)
#6A7987
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #786cb3;
/* rgb */ color: rgb(120, 108, 179);
/* oklch */ color: oklch(57.3% 0.108 290.3);
Tailwind
colors: {
  custom: {
    50: '#a196ca',
    500: '#786cb3',
    950: '#000000',
  },
}
SCSS
$custom: #786cb3;
$custom-light: #a196ca;
$custom-dark: #000000;
JSON
{
  "hex": "#786cb3",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 179
  },
  "hsl": {
    "h": 250.141,
    "s": 31.839,
    "l": 56.275
  },
  "oklch": {
    "l": 0.57268,
    "c": 0.10779,
    "h": 290.3
  },
  "luminance": 0.17973
}

Semantic roles & 50–950 ramp

primary
#786CB3
secondary
#C7CCAF
accent
#C860B6
background
#FAF9FC
surface
#F3F2F8
border
#CDCCD1
text
#0F0D13
muted
#7F7E82

Preview Lab

Preview with #786CB3

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

Preview Lab → · Contrast checker → · Palette generator →

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