#786AD2#786AD2

#786AD2 is a mid, vivid blue. Relative luminance 0.190; OKLCH L 58.7% C 0.154 H 286.8°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#786AD2
RGBrgb(120, 106, 210)
HSLhsl(248, 54%, 62%)
HSVhsv(248, 50%, 82%)
CMYKcmyk(42.9%, 49.5%, 0%, 17.6%)
CIE-LABlab(50.63, 31.13, -52.06)
CIE-LCHlch(50.63, 60.66, 300.87°)
OKLaboklab(58.69% 0.0446 -0.1477)
OKLCHoklch(58.69% 0.154 286.8)
XYZxyz(24.5293, 18.9534, 63.3262)
Luminance0.1895 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786AD2 #C4D26A
analogous
#6A90D2 #786AD2 #AC6AD2
triadic
#786AD2 #D2786A #6AD278
tetradic
#786AD2 #D26A90 #C4D26A #6AD2AC
square
#786AD2 #D26A90 #C4D26A #6AD2AC
split-complementary
#786AD2 #D2AC6A #90D26A
monochromatic
#3B2D95 #4D3BC4 #786AD2 #A399E0 #CDC8EE

Accessibility & contrast

On white

4.38
#786AD2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#786AD2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786AD2
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786AD2#FFFFFF#000000##000000
##786AD21.004.384.794.79
#FFFFFF4.381.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E7BD6
Deuteranopia (green-blind)
#3D76D0
Tritanopia (blue-blind)
#5D8094
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #786ad2;
/* rgb */ color: rgb(120, 106, 210);
/* oklch */ color: oklch(58.7% 0.154 286.8);
Tailwind
colors: {
  custom: {
    50: '#a495e0',
    500: '#786ad2',
    950: '#000000',
  },
}
SCSS
$custom: #786ad2;
$custom-light: #a495e0;
$custom-dark: #000000;
JSON
{
  "hex": "#786ad2",
  "rgb": {
    "r": 120,
    "g": 106,
    "b": 210
  },
  "hsl": {
    "h": 248.077,
    "s": 53.608,
    "l": 61.961
  },
  "oklch": {
    "l": 0.58694,
    "c": 0.15431,
    "h": 286.8
  },
  "luminance": 0.18954
}

Semantic roles & 50–950 ramp

primary
#786AD2
secondary
#DADFB9
accent
#C124AC
background
#FAF9FD
surface
#F4F1FB
border
#CECBD4
text
#100D15
muted
#7F7E83

Preview Lab

Preview with #786AD2

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

Preview Lab → · Contrast checker → · Palette generator →

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