#786AED#786AED

#786AED is a mid, vivid blue. Relative luminance 0.204; OKLCH L 60.5% C 0.190 H 284.0°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#786AED
RGBrgb(120, 106, 237)
HSLhsl(246, 78%, 67%)
HSVhsv(246, 55%, 93%)
CMYKcmyk(49.4%, 55.3%, 0%, 7.1%)
CIE-LABlab(52.30, 39.00, -64.61)
CIE-LCHlch(52.30, 75.47, 301.12°)
OKLaboklab(60.48% 0.046 -0.1846)
OKLCHoklch(60.48% 0.19 284)
XYZxyz(28.1812, 20.4141, 82.5597)
Luminance0.2042 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786AED #DFED6A
analogous
#6A9EED #786AED #B96AED
triadic
#786AED #ED786A #6AED78
tetradic
#786AED #ED6A9E #DFED6A #6AEDB9
square
#786AED #ED6A9E #DFED6A #6AEDB9
split-complementary
#786AED #EDB96A #9EED6A
monochromatic
#2A18C5 #4733E6 #786AED #A9A1F4 #DBD7FA

Accessibility & contrast

On white

4.13
#786AED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#786AED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786AED
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786AED#FFFFFF#000000##000000
##786AED1.004.135.085.08
#FFFFFF4.131.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#1481F1
Deuteranopia (green-blind)
#0079EA
Tritanopia (blue-blind)
#4D88A1
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #786aed;
/* rgb */ color: rgb(120, 106, 237);
/* oklch */ color: oklch(60.5% 0.190 284.0);
Tailwind
colors: {
  custom: {
    50: '#a795f4',
    500: '#786aed',
    950: '#000000',
  },
}
SCSS
$custom: #786aed;
$custom-light: #a795f4;
$custom-dark: #000000;
JSON
{
  "hex": "#786aed",
  "rgb": {
    "r": 120,
    "g": 106,
    "b": 237
  },
  "hsl": {
    "h": 246.412,
    "s": 78.443,
    "l": 67.255
  },
  "oklch": {
    "l": 0.60475,
    "c": 0.19025,
    "h": 284
  },
  "luminance": 0.20416
}

Semantic roles & 50–950 ramp

primary
#786AED
secondary
#EAEEC5
accent
#DB0BC4
background
#FAF9FF
surface
#F4F1FE
border
#CECBD6
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #786AED

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

Preview Lab → · Contrast checker → · Palette generator →

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