#786EC4#786EC4

#786EC4 is a mid, vivid blue. Relative luminance 0.191; OKLCH L 58.6% C 0.129 H 287.0°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#786EC4
RGBrgb(120, 110, 196)
HSLhsl(247, 42%, 60%)
HSVhsv(247, 44%, 77%)
CMYKcmyk(38.8%, 43.9%, 0%, 23.1%)
CIE-LABlab(50.84, 24.75, -43.73)
CIE-LCHlch(50.84, 50.25, 299.51°)
OKLaboklab(58.6% 0.0378 -0.1233)
OKLCHoklch(58.6% 0.129 287)
XYZxyz(23.2827, 19.1297, 54.6795)
Luminance0.1913 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786EC4 #BAC46E
analogous
#6E8FC4 #786EC4 #A36EC4
triadic
#786EC4 #C4786E #6EC478
tetradic
#786EC4 #C46E8F #BAC46E #6EC4A3
square
#786EC4 #C46E8F #BAC46E #6EC4A3
split-complementary
#786EC4 #C4A36E #8FC46E
monochromatic
#3E3583 #5347AE #786EC4 #A199D6 #C9C5E7

Accessibility & contrast

On white

4.35
#786EC4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#786EC4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786EC4
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786EC4#FFFFFF#000000##000000
##786EC41.004.354.834.83
#FFFFFF4.351.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#507BC7
Deuteranopia (green-blind)
#4F77C2
Tritanopia (blue-blind)
#637F8F
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #786ec4;
/* rgb */ color: rgb(120, 110, 196);
/* oklch */ color: oklch(58.6% 0.129 287.0);
Tailwind
colors: {
  custom: {
    50: '#a297d6',
    500: '#786ec4',
    950: '#000000',
  },
}
SCSS
$custom: #786ec4;
$custom-light: #a297d6;
$custom-dark: #000000;
JSON
{
  "hex": "#786ec4",
  "rgb": {
    "r": 120,
    "g": 110,
    "b": 196
  },
  "hsl": {
    "h": 246.977,
    "s": 42.157,
    "l": 60
  },
  "oklch": {
    "l": 0.58597,
    "c": 0.12898,
    "h": 287
  },
  "luminance": 0.1913
}

Semantic roles & 50–950 ramp

primary
#786EC4
secondary
#D4D7B6
accent
#D256C4
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0D14
muted
#7F7E83

Preview Lab

Preview with #786EC4

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

Preview Lab → · Contrast checker → · Palette generator →

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