#786CEE#786CEE

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

Color values

HEX#786CEE
RGBrgb(120, 108, 238)
HSLhsl(246, 79%, 68%)
HSVhsv(246, 55%, 93%)
CMYKcmyk(49.6%, 54.6%, 0%, 6.7%)
CIE-LABlab(52.83, 38.13, -64.32)
CIE-LCHlch(52.83, 74.77, 300.66°)
OKLaboklab(60.89% 0.0439 -0.1837)
OKLCHoklch(60.89% 0.189 283.4)
XYZxyz(28.5363, 20.8898, 83.4008)
Luminance0.2089 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786CEE #E2EE6C
analogous
#6CA1EE #786CEE #B96CEE
triadic
#786CEE #EE786C #6CEE78
tetradic
#786CEE #EE6CA1 #E2EE6C #6CEEB9
square
#786CEE #EE6CA1 #E2EE6C #6CEEB9
split-complementary
#786CEE #EEB96C #A1EE6C
monochromatic
#2817C8 #4635E8 #786CEE #AAA3F4 #DDDAFB

Accessibility & contrast

On white

4.06
#786CEE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#786CEE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786CEE
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786CEE#FFFFFF#000000##000000
##786CEE1.004.065.185.18
#FFFFFF4.061.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#1C82F2
Deuteranopia (green-blind)
#0A7AEB
Tritanopia (blue-blind)
#4C89A3
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #786cee;
/* rgb */ color: rgb(120, 108, 238);
/* oklch */ color: oklch(60.9% 0.189 283.4);
Tailwind
colors: {
  custom: {
    50: '#a796f4',
    500: '#786cee',
    950: '#000000',
  },
}
SCSS
$custom: #786cee;
$custom-light: #a796f4;
$custom-dark: #000000;
JSON
{
  "hex": "#786cee",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 238
  },
  "hsl": {
    "h": 245.538,
    "s": 79.268,
    "l": 67.843
  },
  "oklch": {
    "l": 0.60886,
    "c": 0.18891,
    "h": 283.4
  },
  "luminance": 0.20891
}

Semantic roles & 50–950 ramp

primary
#786CEE
secondary
#EBEFC7
accent
#DC0AC8
background
#FAF9FF
surface
#F4F2FE
border
#CECCD6
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #786CEE

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

Preview Lab → · Contrast checker → · Palette generator →

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