#786AD5#786AD5

#786AD5 is a mid, vivid blue. Relative luminance 0.191; OKLCH L 58.9% C 0.158 H 286.5°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#786AD5
RGBrgb(120, 106, 213)
HSLhsl(248, 56%, 63%)
HSVhsv(248, 50%, 84%)
CMYKcmyk(43.7%, 50.2%, 0%, 16.5%)
CIE-LABlab(50.81, 31.99, -53.48)
CIE-LCHlch(50.81, 62.32, 300.88°)
OKLaboklab(58.88% 0.0449 -0.1519)
OKLCHoklch(58.88% 0.158 286.5)
XYZxyz(24.9066, 19.1043, 65.3131)
Luminance0.1910 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786AD5 #C7D56A
analogous
#6A92D5 #786AD5 #AD6AD5
triadic
#786AD5 #D5786A #6AD578
tetradic
#786AD5 #D56A92 #C7D56A #6AD5AD
square
#786AD5 #D56A92 #C7D56A #6AD5AD
split-complementary
#786AD5 #D5AD6A #92D56A
monochromatic
#3A2B99 #4D3AC8 #786AD5 #A39AE2 #CFC9F0

Accessibility & contrast

On white

4.36
#786AD5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.82
#786AD5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786AD5
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786AD5#FFFFFF#000000##000000
##786AD51.004.364.824.82
#FFFFFF4.361.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B7CD9
Deuteranopia (green-blind)
#3976D3
Tritanopia (blue-blind)
#5B8095
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #786ad5;
/* rgb */ color: rgb(120, 106, 213);
/* oklch */ color: oklch(58.9% 0.158 286.5);
Tailwind
colors: {
  custom: {
    50: '#a495e2',
    500: '#786ad5',
    950: '#000000',
  },
}
SCSS
$custom: #786ad5;
$custom-light: #a495e2;
$custom-dark: #000000;
JSON
{
  "hex": "#786ad5",
  "rgb": {
    "r": 120,
    "g": 106,
    "b": 213
  },
  "hsl": {
    "h": 247.85,
    "s": 56.021,
    "l": 62.549
  },
  "oklch": {
    "l": 0.58883,
    "c": 0.15839,
    "h": 286.5
  },
  "luminance": 0.19105
}

Semantic roles & 50–950 ramp

primary
#786AD5
secondary
#DCE1BA
accent
#C422AE
background
#FAF9FD
surface
#F4F1FB
border
#CECBD4
text
#100D15
muted
#7F7E83

Preview Lab

Preview with #786AD5

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

Preview Lab → · Contrast checker → · Palette generator →

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