#786DEC#786DEC

#786DEC is a mid, vivid blue. Relative luminance 0.210; OKLCH L 60.9% C 0.185 H 283.4°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#786DEC
RGBrgb(120, 109, 236)
HSLhsl(245, 77%, 68%)
HSVhsv(245, 54%, 93%)
CMYKcmyk(49.2%, 53.8%, 0%, 7.5%)
CIE-LABlab(52.93, 36.95, -63.04)
CIE-LCHlch(52.93, 73.07, 300.38°)
OKLaboklab(60.92% 0.0427 -0.18)
OKLCHoklch(60.92% 0.185 283.4)
XYZxyz(28.3501, 20.9850, 81.8973)
Luminance0.2099 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786DEC #E1EC6D
analogous
#6DA1EC #786DEC #B86DEC
triadic
#786DEC #EC786D #6DEC78
tetradic
#786DEC #EC6DA1 #E1EC6D #6DECB8
square
#786DEC #EC6DA1 #E1EC6D #6DECB8
split-complementary
#786DEC #ECB86D #A1EC6D
monochromatic
#281AC5 #4637E5 #786DEC #AAA3F3 #DCD9FA

Accessibility & contrast

On white

4.04
#786DEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#786DEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786DEC
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786DEC#FFFFFF#000000##000000
##786DEC1.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#2482F0
Deuteranopia (green-blind)
#187AE9
Tritanopia (blue-blind)
#4D89A2
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #786dec;
/* rgb */ color: rgb(120, 109, 236);
/* oklch */ color: oklch(60.9% 0.185 283.4);
Tailwind
colors: {
  custom: {
    50: '#a697f3',
    500: '#786dec',
    950: '#000000',
  },
}
SCSS
$custom: #786dec;
$custom-light: #a697f3;
$custom-dark: #000000;
JSON
{
  "hex": "#786dec",
  "rgb": {
    "r": 120,
    "g": 109,
    "b": 236
  },
  "hsl": {
    "h": 245.197,
    "s": 76.97,
    "l": 67.647
  },
  "oklch": {
    "l": 0.60923,
    "c": 0.18496,
    "h": 283.4
  },
  "luminance": 0.20986
}

Semantic roles & 50–950 ramp

primary
#786DEC
secondary
#EBEEC7
accent
#D90CC7
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #786DEC

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

Preview Lab → · Contrast checker → · Palette generator →

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