#786BB6#786BB6

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

Color values

HEX#786BB6
RGBrgb(120, 107, 182)
HSLhsl(250, 34%, 57%)
HSVhsv(250, 41%, 71%)
CMYKcmyk(34.1%, 41.2%, 0%, 28.6%)
CIE-LABlab(49.36, 22.68, -38.00)
CIE-LCHlch(49.36, 44.26, 300.83°)
OKLaboklab(57.24% 0.0394 -0.1066)
OKLCHoklch(57.24% 0.114 290.3)
XYZxyz(21.4447, 17.8854, 46.5693)
Luminance0.1789 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786BB6 #A9B66B
analogous
#6B84B6 #786BB6 #9E6BB6
triadic
#786BB6 #B6786B #6BB678
tetradic
#786BB6 #B66B84 #A9B66B #6BB69E
square
#786BB6 #B66B84 #A9B66B #6BB69E
split-complementary
#786BB6 #B69E6B #84B66B
monochromatic
#413770 #594B99 #786BB6 #9D94CA #C3BDDE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##786BB6#FFFFFF#000000##FFFFFF
##786BB61.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)
#5377B9
Deuteranopia (green-blind)
#5474B4
Tritanopia (blue-blind)
#697988
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #786bb6;
/* rgb */ color: rgb(120, 107, 182);
/* oklch */ color: oklch(57.2% 0.114 290.3);
Tailwind
colors: {
  custom: {
    50: '#a195cc',
    500: '#786bb6',
    950: '#000000',
  },
}
SCSS
$custom: #786bb6;
$custom-light: #a195cc;
$custom-dark: #000000;
JSON
{
  "hex": "#786bb6",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 182
  },
  "hsl": {
    "h": 250.4,
    "s": 33.937,
    "l": 56.667
  },
  "oklch": {
    "l": 0.57236,
    "c": 0.11368,
    "h": 290.3
  },
  "luminance": 0.17886
}

Semantic roles & 50–950 ramp

primary
#786BB6
secondary
#C8CEAF
accent
#CA5EB7
background
#FAF9FC
surface
#F4F1F9
border
#CECBD2
text
#0F0D13
muted
#7F7E82

Preview Lab

Preview with #786BB6

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

Preview Lab → · Contrast checker → · Palette generator →

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