#786AEE#786AEE

#786AEE is a mid, vivid blue. Relative luminance 0.205; OKLCH L 60.5% C 0.192 H 283.9°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#786AEE
RGBrgb(120, 106, 238)
HSLhsl(246, 80%, 67%)
HSVhsv(246, 55%, 93%)
CMYKcmyk(49.6%, 55.5%, 0%, 6.7%)
CIE-LABlab(52.37, 39.30, -65.07)
CIE-LCHlch(52.37, 76.01, 301.13°)
OKLaboklab(60.54% 0.046 -0.1859)
OKLCHoklch(60.54% 0.192 283.9)
XYZxyz(28.3278, 20.4727, 83.3313)
Luminance0.2047 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786AEE #E0EE6A
analogous
#6A9EEE #786AEE #BA6AEE
triadic
#786AEE #EE786A #6AEE78
tetradic
#786AEE #EE6A9E #E0EE6A #6AEEBA
square
#786AEE #EE6A9E #E0EE6A #6AEEBA
split-complementary
#786AEE #EEBA6A #9EEE6A
monochromatic
#2917C7 #4633E8 #786AEE #AAA1F4 #DCD8FB

Accessibility & contrast

On white

4.12
#786AEE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#786AEE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786AEE
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786AEE#FFFFFF#000000##000000
##786AEE1.004.125.095.09
#FFFFFF4.121.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#1081F2
Deuteranopia (green-blind)
#0079EB
Tritanopia (blue-blind)
#4C88A2
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #786aee;
/* rgb */ color: rgb(120, 106, 238);
/* oklch */ color: oklch(60.5% 0.192 283.9);
Tailwind
colors: {
  custom: {
    50: '#a795f4',
    500: '#786aee',
    950: '#000000',
  },
}
SCSS
$custom: #786aee;
$custom-light: #a795f4;
$custom-dark: #000000;
JSON
{
  "hex": "#786aee",
  "rgb": {
    "r": 120,
    "g": 106,
    "b": 238
  },
  "hsl": {
    "h": 246.364,
    "s": 79.518,
    "l": 67.451
  },
  "oklch": {
    "l": 0.60544,
    "c": 0.19156,
    "h": 283.9
  },
  "luminance": 0.20474
}

Semantic roles & 50–950 ramp

primary
#786AEE
secondary
#EAEFC5
accent
#DC0AC6
background
#FAF9FF
surface
#F4F1FE
border
#CECBD6
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #786AEE

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

Preview Lab → · Contrast checker → · Palette generator →

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