#786CD9#786CD9

#786CD9 is a mid, vivid blue. Relative luminance 0.197; OKLCH L 59.5% C 0.161 H 285.4°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#786CD9
RGBrgb(120, 108, 217)
HSLhsl(247, 59%, 64%)
HSVhsv(247, 50%, 85%)
CMYKcmyk(44.7%, 50.2%, 0%, 14.9%)
CIE-LABlab(51.53, 31.96, -54.60)
CIE-LCHlch(51.53, 63.27, 300.34°)
OKLaboklab(59.5% 0.0428 -0.1552)
OKLCHoklch(59.5% 0.161 285.4)
XYZxyz(25.6290, 19.7269, 68.0894)
Luminance0.1973 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786CD9 #CDD96C
analogous
#6C96D9 #786CD9 #AE6CD9
triadic
#786CD9 #D9786C #6CD978
tetradic
#786CD9 #D96C96 #CDD96C #6CD9AE
square
#786CD9 #D96C96 #CDD96C #6CD9AE
split-complementary
#786CD9 #D9AE6C #96D96C
monochromatic
#372AA1 #4B3BCC #786CD9 #A59DE6 #D1CDF2

Accessibility & contrast

On white

4.25
#786CD9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#786CD9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786CD9
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786CD9#FFFFFF#000000##000000
##786CD91.004.254.954.95
#FFFFFF4.251.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B7EDD
Deuteranopia (green-blind)
#3878D7
Tritanopia (blue-blind)
#598398
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #786cd9;
/* rgb */ color: rgb(120, 108, 217);
/* oklch */ color: oklch(59.5% 0.161 285.4);
Tailwind
colors: {
  custom: {
    50: '#a496e5',
    500: '#786cd9',
    950: '#000000',
  },
}
SCSS
$custom: #786cd9;
$custom-light: #a496e5;
$custom-dark: #000000;
JSON
{
  "hex": "#786cd9",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 217
  },
  "hsl": {
    "h": 246.606,
    "s": 58.919,
    "l": 63.725
  },
  "oklch": {
    "l": 0.59498,
    "c": 0.16097,
    "h": 285.4
  },
  "luminance": 0.19728
}

Semantic roles & 50–950 ramp

primary
#786CD9
secondary
#DFE4BD
accent
#C71FB4
background
#FAF9FE
surface
#F4F2FC
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #786CD9

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

Preview Lab → · Contrast checker → · Palette generator →

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