#786DC4#786DC4

#786DC4 is a mid, vivid blue. Relative luminance 0.189; OKLCH L 58.4% C 0.130 H 287.4°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#786DC4
RGBrgb(120, 109, 196)
HSLhsl(248, 42%, 60%)
HSVhsv(248, 44%, 77%)
CMYKcmyk(38.8%, 44.4%, 0%, 23.1%)
CIE-LABlab(50.59, 25.35, -44.13)
CIE-LCHlch(50.59, 50.89, 299.88°)
OKLaboklab(58.41% 0.0391 -0.1245)
OKLCHoklch(58.41% 0.13 287.4)
XYZxyz(23.1754, 18.9151, 54.6438)
Luminance0.1892 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786DC4 #B9C46D
analogous
#6D8EC4 #786DC4 #A36DC4
triadic
#786DC4 #C4786D #6DC478
tetradic
#786DC4 #C46D8E #B9C46D #6DC4A3
square
#786DC4 #C46D8E #B9C46D #6DC4A3
split-complementary
#786DC4 #C4A36D #8EC46D
monochromatic
#3E3582 #5346AE #786DC4 #A099D6 #C9C4E7

Accessibility & contrast

On white

4.39
#786DC4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#786DC4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786DC4
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786DC4#FFFFFF#000000##000000
##786DC41.004.394.784.78
#FFFFFF4.391.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E7BC7
Deuteranopia (green-blind)
#4D76C2
Tritanopia (blue-blind)
#637E8F
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #786dc4;
/* rgb */ color: rgb(120, 109, 196);
/* oklch */ color: oklch(58.4% 0.130 287.4);
Tailwind
colors: {
  custom: {
    50: '#a297d6',
    500: '#786dc4',
    950: '#000000',
  },
}
SCSS
$custom: #786dc4;
$custom-light: #a297d6;
$custom-dark: #000000;
JSON
{
  "hex": "#786dc4",
  "rgb": {
    "r": 120,
    "g": 109,
    "b": 196
  },
  "hsl": {
    "h": 247.586,
    "s": 42.439,
    "l": 59.804
  },
  "oklch": {
    "l": 0.58407,
    "c": 0.13048,
    "h": 287.4
  },
  "luminance": 0.18916
}

Semantic roles & 50–950 ramp

primary
#786DC4
secondary
#D3D7B6
accent
#D256C2
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0D14
muted
#7F7E83

Preview Lab

Preview with #786DC4

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

Preview Lab → · Contrast checker → · Palette generator →

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