#786BD2#786BD2

#786BD2 is a mid, vivid blue. Relative luminance 0.192; OKLCH L 58.9% C 0.153 H 286.5°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#786BD2
RGBrgb(120, 107, 210)
HSLhsl(248, 53%, 62%)
HSVhsv(248, 49%, 82%)
CMYKcmyk(42.9%, 49%, 0%, 17.6%)
CIE-LABlab(50.87, 30.53, -51.67)
CIE-LCHlch(50.87, 60.02, 300.58°)
OKLaboklab(58.88% 0.0434 -0.1466)
OKLCHoklch(58.88% 0.153 286.5)
XYZxyz(24.6330, 19.1607, 63.3607)
Luminance0.1916 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786BD2 #C5D26B
analogous
#6B92D2 #786BD2 #AC6BD2
triadic
#786BD2 #D2786B #6BD278
tetradic
#786BD2 #D26B92 #C5D26B #6BD2AC
square
#786BD2 #D26B92 #C5D26B #6BD2AC
split-complementary
#786BD2 #D2AC6B #92D26B
monochromatic
#3A2D95 #4D3CC4 #786BD2 #A39AE0 #CEC9EF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##786BD2#FFFFFF#000000##000000
##786BD21.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)
#407CD6
Deuteranopia (green-blind)
#3E76D0
Tritanopia (blue-blind)
#5D8095
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #786bd2;
/* rgb */ color: rgb(120, 107, 210);
/* oklch */ color: oklch(58.9% 0.153 286.5);
Tailwind
colors: {
  custom: {
    50: '#a495e0',
    500: '#786bd2',
    950: '#000000',
  },
}
SCSS
$custom: #786bd2;
$custom-light: #a495e0;
$custom-dark: #000000;
JSON
{
  "hex": "#786bd2",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 210
  },
  "hsl": {
    "h": 247.573,
    "s": 53.368,
    "l": 62.157
  },
  "oklch": {
    "l": 0.58876,
    "c": 0.15286,
    "h": 286.5
  },
  "luminance": 0.19162
}

Semantic roles & 50–950 ramp

primary
#786BD2
secondary
#DBDFB9
accent
#C125AD
background
#FAF9FD
surface
#F4F1FB
border
#CECBD4
text
#100D15
muted
#7F7E83

Preview Lab

Preview with #786BD2

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

Preview Lab → · Contrast checker → · Palette generator →

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