#786AEB#786AEB

#786AEB is a mid, vivid blue. Relative luminance 0.203; OKLCH L 60.3% C 0.188 H 284.2°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#786AEB
RGBrgb(120, 106, 235)
HSLhsl(247, 76%, 67%)
HSVhsv(247, 55%, 92%)
CMYKcmyk(48.9%, 54.9%, 0%, 7.8%)
CIE-LABlab(52.17, 38.41, -63.70)
CIE-LCHlch(52.17, 74.39, 301.09°)
OKLaboklab(60.34% 0.046 -0.1819)
OKLCHoklch(60.34% 0.188 284.2)
XYZxyz(27.8907, 20.2979, 81.0294)
Luminance0.2030 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786AEB #DDEB6A
analogous
#6A9DEB #786AEB #B96AEB
triadic
#786AEB #EB786A #6AEB78
tetradic
#786AEB #EB6A9D #DDEB6A #6AEBB9
square
#786AEB #EB6A9D #DDEB6A #6AEBB9
split-complementary
#786AEB #EBB96A #9DEB6A
monochromatic
#2C1AC1 #4734E4 #786AEB #A9A0F2 #DAD6F9

Accessibility & contrast

On white

4.15
#786AEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#786AEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786AEB
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786AEB#FFFFFF#000000##000000
##786AEB1.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#1A80EF
Deuteranopia (green-blind)
#0C78E8
Tritanopia (blue-blind)
#4E87A0
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #786aeb;
/* rgb */ color: rgb(120, 106, 235);
/* oklch */ color: oklch(60.3% 0.188 284.2);
Tailwind
colors: {
  custom: {
    50: '#a695f2',
    500: '#786aeb',
    950: '#000000',
  },
}
SCSS
$custom: #786aeb;
$custom-light: #a695f2;
$custom-dark: #000000;
JSON
{
  "hex": "#786aeb",
  "rgb": {
    "r": 120,
    "g": 106,
    "b": 235
  },
  "hsl": {
    "h": 246.512,
    "s": 76.331,
    "l": 66.863
  },
  "oklch": {
    "l": 0.60337,
    "c": 0.18765,
    "h": 284.2
  },
  "luminance": 0.20299
}

Semantic roles & 50–950 ramp

primary
#786AEB
secondary
#E9EDC4
accent
#D90DC2
background
#FAF9FE
surface
#F4F1FD
border
#CECBD5
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #786AEB

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

Preview Lab → · Contrast checker → · Palette generator →

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