#786BB9#786BB9

#786BB9 is a mid, moderate violet. Relative luminance 0.180; OKLCH L 57.4% C 0.118 H 289.8°. Best body text is #000000 at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#786BB9
RGBrgb(120, 107, 185)
HSLhsl(250, 36%, 57%)
HSVhsv(250, 42%, 73%)
CMYKcmyk(35.1%, 42.2%, 0%, 27.5%)
CIE-LABlab(49.51, 23.50, -39.50)
CIE-LCHlch(49.51, 45.96, 300.75°)
OKLaboklab(57.4% 0.04 -0.111)
OKLCHoklch(57.4% 0.118 289.8)
XYZxyz(21.7581, 18.0107, 48.2196)
Luminance0.1801 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786BB9 #ACB96B
analogous
#6B85B9 #786BB9 #9F6BB9
triadic
#786BB9 #B9786B #6BB978
tetradic
#786BB9 #B96B85 #ACB96B #6BB99F
square
#786BB9 #B96B85 #ACB96B #6BB99F
split-complementary
#786BB9 #B99F6B #85B96B
monochromatic
#413673 #584A9D #786BB9 #9E95CD #C4BEE0

Accessibility & contrast

On white

4.56
#786BB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.60
#786BB9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786BB9
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786BB9#FFFFFF#000000##000000
##786BB91.004.564.604.60
#FFFFFF4.561.0021.0021.00
#0000004.6021.001.001.00
##0000004.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5277BC
Deuteranopia (green-blind)
#5274B7
Tritanopia (blue-blind)
#687A89
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #786bb9;
/* rgb */ color: rgb(120, 107, 185);
/* oklch */ color: oklch(57.4% 0.118 289.8);
Tailwind
colors: {
  custom: {
    50: '#a195ce',
    500: '#786bb9',
    950: '#000000',
  },
}
SCSS
$custom: #786bb9;
$custom-light: #a195ce;
$custom-dark: #000000;
JSON
{
  "hex": "#786bb9",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 185
  },
  "hsl": {
    "h": 250,
    "s": 35.78,
    "l": 57.255
  },
  "oklch": {
    "l": 0.57402,
    "c": 0.11796,
    "h": 289.8
  },
  "luminance": 0.18011
}

Semantic roles & 50–950 ramp

primary
#786BB9
secondary
#CAD0B0
accent
#CC5CB9
background
#FAF9FC
surface
#F4F1F9
border
#CECBD2
text
#0F0D13
muted
#7F7E82

Preview Lab

Preview with #786BB9

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

Preview Lab → · Contrast checker → · Palette generator →

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