#786CDF#786CDF

#786CDF is a mid, vivid blue. Relative luminance 0.200; OKLCH L 59.9% C 0.169 H 284.8°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#786CDF
RGBrgb(120, 108, 223)
HSLhsl(246, 64%, 65%)
HSVhsv(246, 52%, 87%)
CMYKcmyk(46.2%, 51.6%, 0%, 12.5%)
CIE-LABlab(51.89, 33.71, -57.42)
CIE-LCHlch(51.89, 66.58, 300.42°)
OKLaboklab(59.88% 0.0432 -0.1634)
OKLCHoklch(59.88% 0.169 284.8)
XYZxyz(26.4237, 20.0447, 72.2745)
Luminance0.2005 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786CDF #D3DF6C
analogous
#6C99DF #786CDF #B26CDF
triadic
#786CDF #DF786C #6CDF78
tetradic
#786CDF #DF6C99 #D3DF6C #6CDFB2
square
#786CDF #DF6C99 #D3DF6C #6CDFB2
split-complementary
#786CDF #DFB26C #99DF6C
monochromatic
#3325AB #4A3AD4 #786CDF #A69EEA #D4D1F5

Accessibility & contrast

On white

4.19
#786CDF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#786CDF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786CDF
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786CDF#FFFFFF#000000##000000
##786CDF1.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#357FE3
Deuteranopia (green-blind)
#3078DC
Tritanopia (blue-blind)
#56859B
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #786cdf;
/* rgb */ color: rgb(120, 108, 223);
/* oklch */ color: oklch(59.9% 0.169 284.8);
Tailwind
colors: {
  custom: {
    50: '#a596ea',
    500: '#786cdf',
    950: '#000000',
  },
}
SCSS
$custom: #786cdf;
$custom-light: #a596ea;
$custom-dark: #000000;
JSON
{
  "hex": "#786cdf",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 223
  },
  "hsl": {
    "h": 246.261,
    "s": 64.246,
    "l": 64.902
  },
  "oklch": {
    "l": 0.59884,
    "c": 0.16906,
    "h": 284.8
  },
  "luminance": 0.20046
}

Semantic roles & 50–950 ramp

primary
#786CDF
secondary
#E3E7C0
accent
#CC19B9
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #786CDF

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

Preview Lab → · Contrast checker → · Palette generator →

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