#786AE4#786AE4

#786AE4 is a mid, vivid blue. Relative luminance 0.199; OKLCH L 59.9% C 0.178 H 284.9°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#786AE4
RGBrgb(120, 106, 228)
HSLhsl(247, 69%, 65%)
HSVhsv(247, 54%, 89%)
CMYKcmyk(47.4%, 53.5%, 0%, 10.6%)
CIE-LABlab(51.73, 36.35, -60.49)
CIE-LCHlch(51.73, 70.58, 301.00°)
OKLaboklab(59.86% 0.0458 -0.1725)
OKLCHoklch(59.86% 0.178 284.9)
XYZxyz(26.8992, 19.9013, 75.8077)
Luminance0.1990 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786AE4 #D6E46A
analogous
#6A99E4 #786AE4 #B56AE4
triadic
#786AE4 #E4786A #6AE478
tetradic
#786AE4 #E46A99 #D6E46A #6AE4B5
square
#786AE4 #E46A99 #D6E46A #6AE4B5
split-complementary
#786AE4 #E4B56A #99E46A
monochromatic
#3120B3 #4936DB #786AE4 #A79EED #D6D2F7

Accessibility & contrast

On white

4.22
#786AE4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#786AE4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786AE4
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786AE4#FFFFFF#000000##000000
##786AE41.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#287FE8
Deuteranopia (green-blind)
#2278E1
Tritanopia (blue-blind)
#53859D
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #786ae4;
/* rgb */ color: rgb(120, 106, 228);
/* oklch */ color: oklch(59.9% 0.178 284.9);
Tailwind
colors: {
  custom: {
    50: '#a695ed',
    500: '#786ae4',
    950: '#000000',
  },
}
SCSS
$custom: #786ae4;
$custom-light: #a695ed;
$custom-dark: #000000;
JSON
{
  "hex": "#786ae4",
  "rgb": {
    "r": 120,
    "g": 106,
    "b": 228
  },
  "hsl": {
    "h": 246.885,
    "s": 69.318,
    "l": 65.49
  },
  "oklch": {
    "l": 0.59862,
    "c": 0.17847,
    "h": 284.9
  },
  "luminance": 0.19903
}

Semantic roles & 50–950 ramp

primary
#786AE4
secondary
#E5E9C0
accent
#D114BC
background
#FAF9FE
surface
#F4F1FD
border
#CECBD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #786AE4

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

Preview Lab → · Contrast checker → · Palette generator →

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