#786CD4#786CD4

#786CD4 is a mid, vivid blue. Relative luminance 0.195; OKLCH L 59.2% C 0.154 H 285.9°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#786CD4
RGBrgb(120, 108, 212)
HSLhsl(247, 55%, 63%)
HSVhsv(247, 49%, 83%)
CMYKcmyk(43.4%, 49.1%, 0%, 16.9%)
CIE-LABlab(51.23, 30.51, -52.24)
CIE-LCHlch(51.23, 60.49, 300.29°)
OKLaboklab(59.18% 0.0424 -0.1482)
OKLCHoklch(59.18% 0.154 285.9)
XYZxyz(24.9885, 19.4707, 64.7162)
Luminance0.1947 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786CD4 #C8D46C
analogous
#6C94D4 #786CD4 #AC6CD4
triadic
#786CD4 #D4786C #6CD478
tetradic
#786CD4 #D46C94 #C8D46C #6CD4AC
square
#786CD4 #D46C94 #C8D46C #6CD4AC
split-complementary
#786CD4 #D4AC6C #94D46C
monochromatic
#392D99 #4D3DC6 #786CD4 #A39BE2 #CFCBF0

Accessibility & contrast

On white

4.29
#786CD4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#786CD4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786CD4
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786CD4#FFFFFF#000000##000000
##786CD41.004.294.894.89
#FFFFFF4.291.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#407DD8
Deuteranopia (green-blind)
#3E77D2
Tritanopia (blue-blind)
#5C8296
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #786cd4;
/* rgb */ color: rgb(120, 108, 212);
/* oklch */ color: oklch(59.2% 0.154 285.9);
Tailwind
colors: {
  custom: {
    50: '#a496e2',
    500: '#786cd4',
    950: '#000000',
  },
}
SCSS
$custom: #786cd4;
$custom-light: #a496e2;
$custom-dark: #000000;
JSON
{
  "hex": "#786cd4",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 212
  },
  "hsl": {
    "h": 246.923,
    "s": 54.737,
    "l": 62.745
  },
  "oklch": {
    "l": 0.59183,
    "c": 0.15416,
    "h": 285.9
  },
  "luminance": 0.19472
}

Semantic roles & 50–950 ramp

primary
#786CD4
secondary
#DCE1BB
accent
#C223B0
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#100D15
muted
#7F7E83

Preview Lab

Preview with #786CD4

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

Preview Lab → · Contrast checker → · Palette generator →

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