#786CD6#786CD6

#786CD6 is a mid, vivid blue. Relative luminance 0.196; OKLCH L 59.3% C 0.157 H 285.7°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#786CD6
RGBrgb(120, 108, 214)
HSLhsl(247, 56%, 63%)
HSVhsv(247, 50%, 84%)
CMYKcmyk(43.9%, 49.5%, 0%, 16.1%)
CIE-LABlab(51.35, 31.09, -53.19)
CIE-LCHlch(51.35, 61.61, 300.31°)
OKLaboklab(59.31% 0.0425 -0.151)
OKLCHoklch(59.31% 0.157 285.7)
XYZxyz(25.2424, 19.5722, 66.0531)
Luminance0.1957 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786CD6 #CAD66C
analogous
#6C95D6 #786CD6 #AD6CD6
triadic
#786CD6 #D6786C #6CD678
tetradic
#786CD6 #D66C95 #CAD66C #6CD6AD
square
#786CD6 #D66C95 #CAD66C #6CD6AD
split-complementary
#786CD6 #D6AD6C #95D66C
monochromatic
#382C9C #4C3CC9 #786CD6 #A49CE3 #D0CCF1

Accessibility & contrast

On white

4.27
#786CD6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#786CD6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786CD6
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786CD6#FFFFFF#000000##000000
##786CD61.004.274.914.91
#FFFFFF4.271.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E7DDA
Deuteranopia (green-blind)
#3C77D4
Tritanopia (blue-blind)
#5B8297
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #786cd6;
/* rgb */ color: rgb(120, 108, 214);
/* oklch */ color: oklch(59.3% 0.157 285.7);
Tailwind
colors: {
  custom: {
    50: '#a496e3',
    500: '#786cd6',
    950: '#000000',
  },
}
SCSS
$custom: #786cd6;
$custom-light: #a496e3;
$custom-dark: #000000;
JSON
{
  "hex": "#786cd6",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 214
  },
  "hsl": {
    "h": 246.792,
    "s": 56.383,
    "l": 63.137
  },
  "oklch": {
    "l": 0.59308,
    "c": 0.15689,
    "h": 285.7
  },
  "luminance": 0.19573
}

Semantic roles & 50–950 ramp

primary
#786CD6
secondary
#DEE2BC
accent
#C422B2
background
#FAF9FE
surface
#F4F2FC
border
#CECCD5
text
#100D15
muted
#7F7E84

Preview Lab

Preview with #786CD6

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

Preview Lab → · Contrast checker → · Palette generator →

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