#786AE1#786AE1

#786AE1 is a mid, vivid blue. Relative luminance 0.197; OKLCH L 59.7% C 0.174 H 285.2°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#786AE1
RGBrgb(120, 106, 225)
HSLhsl(247, 66%, 65%)
HSVhsv(247, 53%, 88%)
CMYKcmyk(46.7%, 52.9%, 0%, 11.8%)
CIE-LABlab(51.54, 35.48, -59.11)
CIE-LCHlch(51.54, 68.94, 300.97°)
OKLaboklab(59.66% 0.0456 -0.1684)
OKLCHoklch(59.66% 0.174 285.2)
XYZxyz(26.4864, 19.7362, 73.6334)
Luminance0.1974 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786AE1 #D3E16A
analogous
#6A97E1 #786AE1 #B46AE1
triadic
#786AE1 #E1786A #6AE178
tetradic
#786AE1 #E16A97 #D3E16A #6AE1B4
square
#786AE1 #E16A97 #D3E16A #6AE1B4
split-complementary
#786AE1 #E1B46A #97E16A
monochromatic
#3323AE #4A37D7 #786AE1 #A69DEB #D4D0F6

Accessibility & contrast

On white

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

On black

4.95
#786AE1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786AE1
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786AE1#FFFFFF#000000##000000
##786AE11.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#2D7EE5
Deuteranopia (green-blind)
#2877DE
Tritanopia (blue-blind)
#55849B
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #786ae1;
/* rgb */ color: rgb(120, 106, 225);
/* oklch */ color: oklch(59.7% 0.174 285.2);
Tailwind
colors: {
  custom: {
    50: '#a595eb',
    500: '#786ae1',
    950: '#000000',
  },
}
SCSS
$custom: #786ae1;
$custom-light: #a595eb;
$custom-dark: #000000;
JSON
{
  "hex": "#786ae1",
  "rgb": {
    "r": 120,
    "g": 106,
    "b": 225
  },
  "hsl": {
    "h": 247.059,
    "s": 66.48,
    "l": 64.902
  },
  "oklch": {
    "l": 0.59662,
    "c": 0.17449,
    "h": 285.2
  },
  "luminance": 0.19737
}

Semantic roles & 50–950 ramp

primary
#786AE1
secondary
#E3E8BF
accent
#CE17B9
background
#FAF9FE
surface
#F4F1FD
border
#CECBD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #786AE1

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

Preview Lab → · Contrast checker → · Palette generator →

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