#786CD1#786CD1

#786CD1 is a mid, vivid blue. Relative luminance 0.193; OKLCH L 59.0% C 0.150 H 286.3°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#786CD1
RGBrgb(120, 108, 209)
HSLhsl(247, 52%, 62%)
HSVhsv(247, 48%, 82%)
CMYKcmyk(42.6%, 48.3%, 0%, 18%)
CIE-LABlab(51.06, 29.65, -50.81)
CIE-LCHlch(51.06, 58.82, 300.26°)
OKLaboklab(59% 0.042 -0.144)
OKLCHoklch(59% 0.15 286.3)
XYZxyz(24.6136, 19.3207, 62.7416)
Luminance0.1932 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786CD1 #C5D16C
analogous
#6C92D1 #786CD1 #AB6CD1
triadic
#786CD1 #D1786C #6CD178
tetradic
#786CD1 #D16C92 #C5D16C #6CD1AB
square
#786CD1 #D16C92 #C5D16C #6CD1AB
split-complementary
#786CD1 #D1AB6C #92D16C
monochromatic
#3A2E94 #4D3DC2 #786CD1 #A39BE0 #CEC9EE

Accessibility & contrast

On white

4.32
#786CD1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#786CD1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786CD1
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786CD1#FFFFFF#000000##000000
##786CD11.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#437CD5
Deuteranopia (green-blind)
#4177CF
Tritanopia (blue-blind)
#5D8194
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #786cd1;
/* rgb */ color: rgb(120, 108, 209);
/* oklch */ color: oklch(59.0% 0.150 286.3);
Tailwind
colors: {
  custom: {
    50: '#a396e0',
    500: '#786cd1',
    950: '#000000',
  },
}
SCSS
$custom: #786cd1;
$custom-light: #a396e0;
$custom-dark: #000000;
JSON
{
  "hex": "#786cd1",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 209
  },
  "hsl": {
    "h": 247.129,
    "s": 52.332,
    "l": 62.157
  },
  "oklch": {
    "l": 0.58997,
    "c": 0.15005,
    "h": 286.3
  },
  "luminance": 0.19322
}

Semantic roles & 50–950 ramp

primary
#786CD1
secondary
#DBDFBA
accent
#C026AD
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#100D15
muted
#7F7E83

Preview Lab

Preview with #786CD1

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

Preview Lab → · Contrast checker → · Palette generator →

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