#786BD4#786BD4

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

Color values

HEX#786BD4
RGBrgb(120, 107, 212)
HSLhsl(247, 55%, 63%)
HSVhsv(247, 50%, 83%)
CMYKcmyk(43.4%, 49.5%, 0%, 16.9%)
CIE-LABlab(50.99, 31.11, -52.62)
CIE-LCHlch(50.99, 61.13, 300.59°)
OKLaboklab(59% 0.0436 -0.1494)
OKLCHoklch(59% 0.156 286.3)
XYZxyz(24.8837, 19.2609, 64.6812)
Luminance0.1926 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786BD4 #C7D46B
analogous
#6B92D4 #786BD4 #AD6BD4
triadic
#786BD4 #D4786B #6BD478
tetradic
#786BD4 #D46B92 #C7D46B #6BD4AD
square
#786BD4 #D46B92 #C7D46B #6BD4AD
split-complementary
#786BD4 #D4AD6B #92D46B
monochromatic
#3A2C98 #4D3CC6 #786BD4 #A39AE2 #CFCAF0

Accessibility & contrast

On white

4.33
#786BD4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#786BD4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786BD4
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786BD4#FFFFFF#000000##000000
##786BD41.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E7CD8
Deuteranopia (green-blind)
#3C76D2
Tritanopia (blue-blind)
#5C8195
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #786bd4;
/* rgb */ color: rgb(120, 107, 212);
/* oklch */ color: oklch(59.0% 0.156 286.3);
Tailwind
colors: {
  custom: {
    50: '#a495e2',
    500: '#786bd4',
    950: '#000000',
  },
}
SCSS
$custom: #786bd4;
$custom-light: #a495e2;
$custom-dark: #000000;
JSON
{
  "hex": "#786bd4",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 212
  },
  "hsl": {
    "h": 247.429,
    "s": 54.974,
    "l": 62.549
  },
  "oklch": {
    "l": 0.59001,
    "c": 0.15559,
    "h": 286.3
  },
  "luminance": 0.19262
}

Semantic roles & 50–950 ramp

primary
#786BD4
secondary
#DCE0BA
accent
#C223AF
background
#FAF9FD
surface
#F4F1FB
border
#CECBD4
text
#100D15
muted
#7F7E83

Preview Lab

Preview with #786BD4

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

Preview Lab → · Contrast checker → · Palette generator →

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