#786AE2#786AE2

#786AE2 is a mid, vivid blue. Relative luminance 0.198; OKLCH L 59.7% C 0.176 H 285.1°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#786AE2
RGBrgb(120, 106, 226)
HSLhsl(247, 67%, 65%)
HSVhsv(247, 53%, 89%)
CMYKcmyk(46.9%, 53.1%, 0%, 11.4%)
CIE-LABlab(51.60, 35.77, -59.57)
CIE-LCHlch(51.60, 69.48, 300.98°)
OKLaboklab(59.73% 0.0457 -0.1698)
OKLCHoklch(59.73% 0.176 285.1)
XYZxyz(26.6232, 19.7909, 74.3540)
Luminance0.1979 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786AE2 #D4E26A
analogous
#6A98E2 #786AE2 #B46AE2
triadic
#786AE2 #E2786A #6AE278
tetradic
#786AE2 #E26A98 #D4E26A #6AE2B4
square
#786AE2 #E26A98 #D4E26A #6AE2B4
split-complementary
#786AE2 #E2B46A #98E26A
monochromatic
#3322AF #4A37D8 #786AE2 #A69DEC #D5D0F6

Accessibility & contrast

On white

4.24
#786AE2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#786AE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786AE2
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786AE2#FFFFFF#000000##000000
##786AE21.004.244.964.96
#FFFFFF4.241.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#2B7EE6
Deuteranopia (green-blind)
#2677DF
Tritanopia (blue-blind)
#54849C
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #786ae2;
/* rgb */ color: rgb(120, 106, 226);
/* oklch */ color: oklch(59.7% 0.176 285.1);
Tailwind
colors: {
  custom: {
    50: '#a595ec',
    500: '#786ae2',
    950: '#000000',
  },
}
SCSS
$custom: #786ae2;
$custom-light: #a595ec;
$custom-dark: #000000;
JSON
{
  "hex": "#786ae2",
  "rgb": {
    "r": 120,
    "g": 106,
    "b": 226
  },
  "hsl": {
    "h": 247,
    "s": 67.416,
    "l": 65.098
  },
  "oklch": {
    "l": 0.59728,
    "c": 0.17582,
    "h": 285.1
  },
  "luminance": 0.19792
}

Semantic roles & 50–950 ramp

primary
#786AE2
secondary
#E3E8C0
accent
#CF16BA
background
#FAF9FE
surface
#F4F1FD
border
#CECBD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #786AE2

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

Preview Lab → · Contrast checker → · Palette generator →

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