#786CB2#786CB2

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

Color values

HEX#786CB2
RGBrgb(120, 108, 178)
HSLhsl(250, 31%, 56%)
HSVhsv(250, 39%, 70%)
CMYKcmyk(32.6%, 39.3%, 0%, 30.2%)
CIE-LABlab(49.41, 21.00, -35.59)
CIE-LCHlch(49.41, 41.32, 300.54°)
OKLaboklab(57.22% 0.0372 -0.0996)
OKLCHoklch(57.22% 0.106 290.5)
XYZxyz(21.1421, 17.9321, 44.4582)
Luminance0.1793 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786CB2 #A6B26C
analogous
#6C83B2 #786CB2 #9B6CB2
triadic
#786CB2 #B2786C #6CB278
tetradic
#786CB2 #B26C83 #A6B26C #6CB29B
square
#786CB2 #B26C83 #A6B26C #6CB29B
split-complementary
#786CB2 #B29B6C #83B26C
monochromatic
#41386B #594D94 #786CB2 #9D94C7 #C2BCDC

Accessibility & contrast

On white

4.58
#786CB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##786CB2#FFFFFF#000000##000000
##786CB21.004.584.594.59
#FFFFFF4.581.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5777B5
Deuteranopia (green-blind)
#5874B0
Tritanopia (blue-blind)
#6A7986
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #786cb2;
/* rgb */ color: rgb(120, 108, 178);
/* oklch */ color: oklch(57.2% 0.106 290.5);
Tailwind
colors: {
  custom: {
    50: '#a196c9',
    500: '#786cb2',
    950: '#000000',
  },
}
SCSS
$custom: #786cb2;
$custom-light: #a196c9;
$custom-dark: #000000;
JSON
{
  "hex": "#786cb2",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 178
  },
  "hsl": {
    "h": 250.286,
    "s": 31.25,
    "l": 56.078
  },
  "oklch": {
    "l": 0.57215,
    "c": 0.10635,
    "h": 290.5
  },
  "luminance": 0.17933
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #786CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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