#786BDF#786BDF

#786BDF is a mid, vivid blue. Relative luminance 0.198; OKLCH L 59.7% C 0.170 H 285.1°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#786BDF
RGBrgb(120, 107, 223)
HSLhsl(247, 64%, 65%)
HSVhsv(247, 52%, 87%)
CMYKcmyk(46.2%, 52%, 0%, 12.5%)
CIE-LABlab(51.65, 34.30, -57.80)
CIE-LCHlch(51.65, 67.21, 300.69°)
OKLaboklab(59.71% 0.0444 -0.1646)
OKLCHoklch(59.71% 0.17 285.1)
XYZxyz(26.3188, 19.8350, 72.2395)
Luminance0.1984 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786BDF #D2DF6B
analogous
#6B98DF #786BDF #B26BDF
triadic
#786BDF #DF786B #6BDF78
tetradic
#786BDF #DF6B98 #D2DF6B #6BDFB2
square
#786BDF #DF6B98 #D2DF6B #6BDFB2
split-complementary
#786BDF #DFB26B #98DF6B
monochromatic
#3425AB #4A39D4 #786BDF #A69DEA #D4D0F5

Accessibility & contrast

On white

4.23
#786BDF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#786BDF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786BDF
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786BDF#FFFFFF#000000##000000
##786BDF1.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#327EE3
Deuteranopia (green-blind)
#2E78DC
Tritanopia (blue-blind)
#56849B
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #786bdf;
/* rgb */ color: rgb(120, 107, 223);
/* oklch */ color: oklch(59.7% 0.170 285.1);
Tailwind
colors: {
  custom: {
    50: '#a595ea',
    500: '#786bdf',
    950: '#000000',
  },
}
SCSS
$custom: #786bdf;
$custom-light: #a595ea;
$custom-dark: #000000;
JSON
{
  "hex": "#786bdf",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 223
  },
  "hsl": {
    "h": 246.724,
    "s": 64.444,
    "l": 64.706
  },
  "oklch": {
    "l": 0.59706,
    "c": 0.17045,
    "h": 285.1
  },
  "luminance": 0.19836
}

Semantic roles & 50–950 ramp

primary
#786BDF
secondary
#E2E7BF
accent
#CC19B8
background
#FAF9FE
surface
#F4F1FD
border
#CECBD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #786BDF

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

Preview Lab → · Contrast checker → · Palette generator →

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