#786AE8#786AE8

#786AE8 is a mid, vivid blue. Relative luminance 0.201; OKLCH L 60.1% C 0.184 H 284.5°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#786AE8
RGBrgb(120, 106, 232)
HSLhsl(247, 73%, 66%)
HSVhsv(247, 54%, 91%)
CMYKcmyk(48.3%, 54.3%, 0%, 9%)
CIE-LABlab(51.98, 37.53, -62.33)
CIE-LCHlch(51.98, 72.76, 301.05°)
OKLaboklab(60.13% 0.0459 -0.1779)
OKLCHoklch(60.13% 0.184 284.5)
XYZxyz(27.4609, 20.1260, 78.7660)
Luminance0.2013 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786AE8 #DAE86A
analogous
#6A9BE8 #786AE8 #B76AE8
triadic
#786AE8 #E8786A #6AE878
tetradic
#786AE8 #E86A9B #DAE86A #6AE8B7
square
#786AE8 #E86A9B #DAE86A #6AE8B7
split-complementary
#786AE8 #E8B76A #9BE86A
monochromatic
#2E1DBB #4835E0 #786AE8 #A89FF0 #D8D4F8

Accessibility & contrast

On white

4.18
#786AE8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#786AE8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786AE8
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786AE8#FFFFFF#000000##000000
##786AE81.004.185.035.03
#FFFFFF4.181.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#2180EC
Deuteranopia (green-blind)
#1878E5
Tritanopia (blue-blind)
#50869F
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #786ae8;
/* rgb */ color: rgb(120, 106, 232);
/* oklch */ color: oklch(60.1% 0.184 284.5);
Tailwind
colors: {
  custom: {
    50: '#a695f0',
    500: '#786ae8',
    950: '#000000',
  },
}
SCSS
$custom: #786ae8;
$custom-light: #a695f0;
$custom-dark: #000000;
JSON
{
  "hex": "#786ae8",
  "rgb": {
    "r": 120,
    "g": 106,
    "b": 232
  },
  "hsl": {
    "h": 246.667,
    "s": 73.256,
    "l": 66.275
  },
  "oklch": {
    "l": 0.60132,
    "c": 0.18372,
    "h": 284.5
  },
  "luminance": 0.20127
}

Semantic roles & 50–950 ramp

primary
#786AE8
secondary
#E7EBC2
accent
#D510BF
background
#FAF9FE
surface
#F4F1FD
border
#CECBD5
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #786AE8

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

Preview Lab → · Contrast checker → · Palette generator →

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