#786BDD#786BDD

#786BDD is a mid, vivid blue. Relative luminance 0.197; OKLCH L 59.6% C 0.168 H 285.3°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#786BDD
RGBrgb(120, 107, 221)
HSLhsl(247, 63%, 64%)
HSVhsv(247, 52%, 87%)
CMYKcmyk(45.7%, 51.6%, 0%, 13.3%)
CIE-LABlab(51.53, 33.72, -56.86)
CIE-LCHlch(51.53, 66.11, 300.67°)
OKLaboklab(59.58% 0.0443 -0.1618)
OKLCHoklch(59.58% 0.168 285.3)
XYZxyz(26.0508, 19.7278, 70.8278)
Luminance0.1973 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786BDD #D0DD6B
analogous
#6B97DD #786BDD #B16BDD
triadic
#786BDD #DD786B #6BDD78
tetradic
#786BDD #DD6B97 #D0DD6B #6BDDB1
square
#786BDD #DD6B97 #D0DD6B #6BDDB1
split-complementary
#786BDD #DDB16B #97DD6B
monochromatic
#3526A7 #4B39D2 #786BDD #A59DE8 #D3CFF4

Accessibility & contrast

On white

4.25
#786BDD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#786BDD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786BDD
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786BDD#FFFFFF#000000##000000
##786BDD1.004.254.954.95
#FFFFFF4.251.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#357EE1
Deuteranopia (green-blind)
#3177DA
Tritanopia (blue-blind)
#57849A
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #786bdd;
/* rgb */ color: rgb(120, 107, 221);
/* oklch */ color: oklch(59.6% 0.168 285.3);
Tailwind
colors: {
  custom: {
    50: '#a595e8',
    500: '#786bdd',
    950: '#000000',
  },
}
SCSS
$custom: #786bdd;
$custom-light: #a595e8;
$custom-dark: #000000;
JSON
{
  "hex": "#786bdd",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 221
  },
  "hsl": {
    "h": 246.842,
    "s": 62.637,
    "l": 64.314
  },
  "oklch": {
    "l": 0.59576,
    "c": 0.16776,
    "h": 285.3
  },
  "luminance": 0.19729
}

Semantic roles & 50–950 ramp

primary
#786BDD
secondary
#E1E6BE
accent
#CA1BB6
background
#FAF9FE
surface
#F4F1FD
border
#CECBD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #786BDD

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

Preview Lab → · Contrast checker → · Palette generator →

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