#786AE5#786AE5

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

Color values

HEX#786AE5
RGBrgb(120, 106, 229)
HSLhsl(247, 70%, 66%)
HSVhsv(247, 54%, 90%)
CMYKcmyk(47.6%, 53.7%, 0%, 10.2%)
CIE-LABlab(51.79, 36.65, -60.95)
CIE-LCHlch(51.79, 71.12, 301.02°)
OKLaboklab(59.93% 0.0458 -0.1738)
OKLCHoklch(59.93% 0.18 284.8)
XYZxyz(27.0384, 19.9570, 76.5409)
Luminance0.1996 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786AE5 #D7E56A
analogous
#6A99E5 #786AE5 #B56AE5
triadic
#786AE5 #E5786A #6AE578
tetradic
#786AE5 #E56A99 #D7E56A #6AE5B5
square
#786AE5 #E56A99 #D7E56A #6AE5B5
split-complementary
#786AE5 #E5B56A #99E56A
monochromatic
#3120B5 #4936DC #786AE5 #A79EEE #D6D2F7

Accessibility & contrast

On white

4.21
#786AE5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#786AE5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786AE5
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786AE5#FFFFFF#000000##000000
##786AE51.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#267FE9
Deuteranopia (green-blind)
#2078E2
Tritanopia (blue-blind)
#52859D
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #786ae5;
/* rgb */ color: rgb(120, 106, 229);
/* oklch */ color: oklch(59.9% 0.180 284.8);
Tailwind
colors: {
  custom: {
    50: '#a695ee',
    500: '#786ae5',
    950: '#000000',
  },
}
SCSS
$custom: #786ae5;
$custom-light: #a695ee;
$custom-dark: #000000;
JSON
{
  "hex": "#786ae5",
  "rgb": {
    "r": 120,
    "g": 106,
    "b": 229
  },
  "hsl": {
    "h": 246.829,
    "s": 70.286,
    "l": 65.686
  },
  "oklch": {
    "l": 0.59929,
    "c": 0.17978,
    "h": 284.8
  },
  "luminance": 0.19958
}

Semantic roles & 50–950 ramp

primary
#786AE5
secondary
#E5EAC1
accent
#D213BD
background
#FAF9FE
surface
#F4F1FD
border
#CECBD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #786AE5

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

Preview Lab → · Contrast checker → · Palette generator →

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