#786DEB#786DEB

#786DEB is a mid, vivid blue. Relative luminance 0.209; OKLCH L 60.9% C 0.184 H 283.4°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#786DEB
RGBrgb(120, 109, 235)
HSLhsl(245, 76%, 67%)
HSVhsv(245, 54%, 92%)
CMYKcmyk(48.9%, 53.6%, 0%, 7.8%)
CIE-LABlab(52.87, 36.65, -62.58)
CIE-LCHlch(52.87, 72.52, 300.36°)
OKLaboklab(60.86% 0.0427 -0.1786)
OKLCHoklch(60.86% 0.184 283.4)
XYZxyz(28.2053, 20.9271, 81.1343)
Luminance0.2093 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786DEB #E0EB6D
analogous
#6DA1EB #786DEB #B76DEB
triadic
#786DEB #EB786D #6DEB78
tetradic
#786DEB #EB6DA1 #E0EB6D #6DEBB7
square
#786DEB #EB6DA1 #E0EB6D #6DEBB7
split-complementary
#786DEB #EBB76D #A1EB6D
monochromatic
#291BC3 #4637E4 #786DEB #AAA3F2 #DCD9FA

Accessibility & contrast

On white

4.05
#786DEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.19
#786DEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786DEB
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786DEB#FFFFFF#000000##000000
##786DEB1.004.055.195.19
#FFFFFF4.051.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#2682EF
Deuteranopia (green-blind)
#1B7AE8
Tritanopia (blue-blind)
#4E89A2
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #786deb;
/* rgb */ color: rgb(120, 109, 235);
/* oklch */ color: oklch(60.9% 0.184 283.4);
Tailwind
colors: {
  custom: {
    50: '#a697f2',
    500: '#786deb',
    950: '#000000',
  },
}
SCSS
$custom: #786deb;
$custom-light: #a697f2;
$custom-dark: #000000;
JSON
{
  "hex": "#786deb",
  "rgb": {
    "r": 120,
    "g": 109,
    "b": 235
  },
  "hsl": {
    "h": 245.238,
    "s": 75.904,
    "l": 67.451
  },
  "oklch": {
    "l": 0.60855,
    "c": 0.18364,
    "h": 283.4
  },
  "luminance": 0.20929
}

Semantic roles & 50–950 ramp

primary
#786DEB
secondary
#EAEEC6
accent
#D80DC6
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #786DEB

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

Preview Lab → · Contrast checker → · Palette generator →

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