#786DDF#786DDF

#786DDF is a mid, vivid blue. Relative luminance 0.203; OKLCH L 60.1% C 0.168 H 284.5°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#786DDF
RGBrgb(120, 109, 223)
HSLhsl(246, 64%, 65%)
HSVhsv(246, 51%, 87%)
CMYKcmyk(46.2%, 51.1%, 0%, 12.5%)
CIE-LABlab(52.13, 33.12, -57.03)
CIE-LCHlch(52.13, 65.95, 300.14°)
OKLaboklab(60.06% 0.0421 -0.1623)
OKLCHoklch(60.06% 0.168 284.5)
XYZxyz(26.5297, 20.2569, 72.3098)
Luminance0.2026 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786DDF #D4DF6D
analogous
#6D9BDF #786DDF #B16DDF
triadic
#786DDF #DF786D #6DDF78
tetradic
#786DDF #DF6D9B #D4DF6D #6DDFB1
square
#786DDF #DF6D9B #D4DF6D #6DDFB1
split-complementary
#786DDF #DFB16D #9BDF6D
monochromatic
#3326AC #4A3BD4 #786DDF #A69FEA #D5D1F5

Accessibility & contrast

On white

4.16
#786DDF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#786DDF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786DDF
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786DDF#FFFFFF#000000##000000
##786DDF1.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3780E3
Deuteranopia (green-blind)
#3279DC
Tritanopia (blue-blind)
#56869C
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #786ddf;
/* rgb */ color: rgb(120, 109, 223);
/* oklch */ color: oklch(60.1% 0.168 284.5);
Tailwind
colors: {
  custom: {
    50: '#a597ea',
    500: '#786ddf',
    950: '#000000',
  },
}
SCSS
$custom: #786ddf;
$custom-light: #a597ea;
$custom-dark: #000000;
JSON
{
  "hex": "#786ddf",
  "rgb": {
    "r": 120,
    "g": 109,
    "b": 223
  },
  "hsl": {
    "h": 245.789,
    "s": 64.045,
    "l": 65.098
  },
  "oklch": {
    "l": 0.60062,
    "c": 0.16767,
    "h": 284.5
  },
  "luminance": 0.20258
}

Semantic roles & 50–950 ramp

primary
#786DDF
secondary
#E3E7C1
accent
#CC1ABB
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #786DDF

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

Preview Lab → · Contrast checker → · Palette generator →

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