#786BDC#786BDC

#786BDC is a mid, vivid blue. Relative luminance 0.197; OKLCH L 59.5% C 0.166 H 285.4°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#786BDC
RGBrgb(120, 107, 220)
HSLhsl(247, 62%, 64%)
HSVhsv(247, 51%, 86%)
CMYKcmyk(45.5%, 51.4%, 0%, 13.7%)
CIE-LABlab(51.47, 33.43, -56.40)
CIE-LCHlch(51.47, 65.56, 300.65°)
OKLaboklab(59.51% 0.0442 -0.1604)
OKLCHoklch(59.51% 0.166 285.4)
XYZxyz(25.9179, 19.6746, 70.1282)
Luminance0.1968 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786BDC #CFDC6B
analogous
#6B97DC #786BDC #B16BDC
triadic
#786BDC #DC786B #6BDC78
tetradic
#786BDC #DC6B97 #CFDC6B #6BDCB1
square
#786BDC #DC6B97 #CFDC6B #6BDCB1
split-complementary
#786BDC #DCB16B #97DC6B
monochromatic
#3627A5 #4B3AD0 #786BDC #A59CE8 #D2CEF3

Accessibility & contrast

On white

4.26
#786BDC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#786BDC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786BDC
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786BDC#FFFFFF#000000##000000
##786BDC1.004.264.944.94
#FFFFFF4.261.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#367EE0
Deuteranopia (green-blind)
#3277DA
Tritanopia (blue-blind)
#588399
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #786bdc;
/* rgb */ color: rgb(120, 107, 220);
/* oklch */ color: oklch(59.5% 0.166 285.4);
Tailwind
colors: {
  custom: {
    50: '#a595e7',
    500: '#786bdc',
    950: '#000000',
  },
}
SCSS
$custom: #786bdc;
$custom-light: #a595e7;
$custom-dark: #000000;
JSON
{
  "hex": "#786bdc",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 220
  },
  "hsl": {
    "h": 246.903,
    "s": 61.749,
    "l": 64.118
  },
  "oklch": {
    "l": 0.59511,
    "c": 0.16642,
    "h": 285.4
  },
  "luminance": 0.19676
}

Semantic roles & 50–950 ramp

primary
#786BDC
secondary
#E1E5BE
accent
#C91CB6
background
#FAF9FE
surface
#F4F1FD
border
#CECBD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #786BDC

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

Preview Lab → · Contrast checker → · Palette generator →

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