#786CB1#786CB1

#786CB1 is a mid, moderate violet. Relative luminance 0.179; OKLCH L 57.2% C 0.105 H 290.7°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#786CB1
RGBrgb(120, 108, 177)
HSLhsl(250, 31%, 56%)
HSVhsv(250, 39%, 69%)
CMYKcmyk(32.2%, 39%, 0%, 30.6%)
CIE-LABlab(49.37, 20.73, -35.09)
CIE-LCHlch(49.37, 40.75, 300.57°)
OKLaboklab(57.16% 0.037 -0.0982)
OKLCHoklch(57.16% 0.105 290.7)
XYZxyz(21.0421, 17.8921, 43.9313)
Luminance0.1789 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786CB1 #A5B16C
analogous
#6C82B1 #786CB1 #9A6CB1
triadic
#786CB1 #B1786C #6CB178
tetradic
#786CB1 #B16C82 #A5B16C #6CB19A
square
#786CB1 #B16C82 #A5B16C #6CB19A
split-complementary
#786CB1 #B19A6C #82B16C
monochromatic
#41386A #5A4E92 #786CB1 #9D94C6 #C1BCDB

Accessibility & contrast

On white

4.59
#786CB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#786CB1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #786CB1
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786CB1#FFFFFF#000000##FFFFFF
##786CB11.004.594.584.59
#FFFFFF4.591.0021.001.00
#0000004.5821.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5777B4
Deuteranopia (green-blind)
#5874AF
Tritanopia (blue-blind)
#6B7986
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #786cb1;
/* rgb */ color: rgb(120, 108, 177);
/* oklch */ color: oklch(57.2% 0.105 290.7);
Tailwind
colors: {
  custom: {
    50: '#a196c8',
    500: '#786cb1',
    950: '#000000',
  },
}
SCSS
$custom: #786cb1;
$custom-light: #a196c8;
$custom-dark: #000000;
JSON
{
  "hex": "#786cb1",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 177
  },
  "hsl": {
    "h": 250.435,
    "s": 30.667,
    "l": 55.882
  },
  "oklch": {
    "l": 0.57162,
    "c": 0.10492,
    "h": 290.7
  },
  "luminance": 0.17893
}

Semantic roles & 50–950 ramp

primary
#786CB1
secondary
#C6CBAE
accent
#C761B5
background
#FAF9FC
surface
#F3F2F8
border
#CDCCD1
text
#0F0D13
muted
#7F7E82

Preview Lab

Preview with #786CB1

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

Preview Lab → · Contrast checker → · Palette generator →

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