#786AE6#786AE6

#786AE6 is a mid, vivid blue. Relative luminance 0.200; OKLCH L 60.0% C 0.181 H 284.7°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#786AE6
RGBrgb(120, 106, 230)
HSLhsl(247, 71%, 66%)
HSVhsv(247, 54%, 90%)
CMYKcmyk(47.8%, 53.9%, 0%, 9.8%)
CIE-LABlab(51.85, 36.94, -61.41)
CIE-LCHlch(51.85, 71.67, 301.03°)
OKLaboklab(60% 0.0458 -0.1752)
OKLCHoklch(60% 0.181 284.7)
XYZxyz(27.1785, 20.0130, 77.2784)
Luminance0.2001 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786AE6 #D8E66A
analogous
#6A9AE6 #786AE6 #B66AE6
triadic
#786AE6 #E6786A #6AE678
tetradic
#786AE6 #E66A9A #D8E66A #6AE6B6
square
#786AE6 #E66A9A #D8E66A #6AE6B6
split-complementary
#786AE6 #E6B66A #9AE66A
monochromatic
#301FB7 #4936DD #786AE6 #A79EEF #D7D3F8

Accessibility & contrast

On white

4.20
#786AE6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#786AE6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786AE6
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786AE6#FFFFFF#000000##000000
##786AE61.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#257FEA
Deuteranopia (green-blind)
#1E78E3
Tritanopia (blue-blind)
#51859E
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #786ae6;
/* rgb */ color: rgb(120, 106, 230);
/* oklch */ color: oklch(60.0% 0.181 284.7);
Tailwind
colors: {
  custom: {
    50: '#a695ef',
    500: '#786ae6',
    950: '#000000',
  },
}
SCSS
$custom: #786ae6;
$custom-light: #a695ef;
$custom-dark: #000000;
JSON
{
  "hex": "#786ae6",
  "rgb": {
    "r": 120,
    "g": 106,
    "b": 230
  },
  "hsl": {
    "h": 246.774,
    "s": 71.264,
    "l": 65.882
  },
  "oklch": {
    "l": 0.59996,
    "c": 0.1811,
    "h": 284.7
  },
  "luminance": 0.20014
}

Semantic roles & 50–950 ramp

primary
#786AE6
secondary
#E6EAC1
accent
#D312BD
background
#FAF9FE
surface
#F4F1FD
border
#CECBD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #786AE6

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

Preview Lab → · Contrast checker → · Palette generator →

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