#786BB2#786BB2

#786BB2 is a mid, moderate violet. Relative luminance 0.177; OKLCH L 57.0% C 0.108 H 291.0°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#786BB2
RGBrgb(120, 107, 178)
HSLhsl(251, 32%, 56%)
HSVhsv(251, 40%, 70%)
CMYKcmyk(32.6%, 39.9%, 0%, 30.2%)
CIE-LABlab(49.16, 21.60, -36.00)
CIE-LCHlch(49.16, 41.98, 300.96°)
OKLaboklab(57.02% 0.0386 -0.1008)
OKLCHoklch(57.02% 0.108 291)
XYZxyz(21.0372, 17.7224, 44.4232)
Luminance0.1772 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786BB2 #A5B26B
analogous
#6B81B2 #786BB2 #9B6BB2
triadic
#786BB2 #B2786B #6BB278
tetradic
#786BB2 #B26B81 #A5B26B #6BB29B
square
#786BB2 #B26B81 #A5B26B #6BB29B
split-complementary
#786BB2 #B29B6B #81B26B
monochromatic
#41386B #5A4D93 #786BB2 #9D93C7 #C1BCDC

Accessibility & contrast

On white

4.62
#786BB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#786BB2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #786BB2
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786BB2#FFFFFF#000000##FFFFFF
##786BB21.004.624.544.62
#FFFFFF4.621.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5676B5
Deuteranopia (green-blind)
#5673B0
Tritanopia (blue-blind)
#6A7886
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #786bb2;
/* rgb */ color: rgb(120, 107, 178);
/* oklch */ color: oklch(57.0% 0.108 291.0);
Tailwind
colors: {
  custom: {
    50: '#a195c9',
    500: '#786bb2',
    950: '#000000',
  },
}
SCSS
$custom: #786bb2;
$custom-light: #a195c9;
$custom-dark: #000000;
JSON
{
  "hex": "#786bb2",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 178
  },
  "hsl": {
    "h": 250.986,
    "s": 31.556,
    "l": 55.882
  },
  "oklch": {
    "l": 0.5702,
    "c": 0.10795,
    "h": 291
  },
  "luminance": 0.17723
}

Semantic roles & 50–950 ramp

primary
#786BB2
secondary
#C6CBAE
accent
#C860B5
background
#FAF9FC
surface
#F3F1F8
border
#CDCBD1
text
#0F0D13
muted
#7F7E82

Preview Lab

Preview with #786BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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