#9786EB#9786EB

#9786EB is a light, vivid violet. Relative luminance 0.296; OKLCH L 67.8% C 0.146 H 289.6°. Best body text is #000000 at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#9786EB
RGBrgb(151, 134, 235)
HSLhsl(250, 72%, 72%)
HSVhsv(250, 43%, 92%)
CMYKcmyk(35.7%, 43%, 0%, 7.8%)
CIE-LABlab(61.33, 29.37, -48.92)
CIE-LCHlch(61.33, 57.06, 300.98°)
OKLaboklab(67.83% 0.0492 -0.1377)
OKLCHoklch(67.83% 0.146 289.6)
XYZxyz(36.2790, 29.6267, 82.3882)
Luminance0.2963 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9786EB #DAEB86
analogous
#86A8EB #9786EB #CA86EB
triadic
#9786EB #EB9786 #86EB97
tetradic
#9786EB #EB86A8 #DAEB86 #86EBCA
square
#9786EB #EB86A8 #DAEB86 #86EBCA
split-complementary
#9786EB #EBCA86 #A8EB86
monochromatic
#4123D4 #6A51E2 #9786EB #C4BBF4 #E8E5FB

Accessibility & contrast

On white

3.03
#9786EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.93
#9786EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9786EB
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9786EB#FFFFFF#000000##000000
##9786EB1.003.036.936.93
#FFFFFF3.031.0021.0021.00
#0000006.9321.001.001.00
##0000006.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6496EF
Deuteranopia (green-blind)
#6592E9
Tritanopia (blue-blind)
#8299AD
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #9786eb;
/* rgb */ color: rgb(151, 134, 235);
/* oklch */ color: oklch(67.8% 0.146 289.6);
Tailwind
colors: {
  custom: {
    50: '#b9a9f2',
    500: '#9786eb',
    950: '#000000',
  },
}
SCSS
$custom: #9786eb;
$custom-light: #b9a9f2;
$custom-dark: #000000;
JSON
{
  "hex": "#9786eb",
  "rgb": {
    "r": 151,
    "g": 134,
    "b": 235
  },
  "hsl": {
    "h": 250.099,
    "s": 71.631,
    "l": 72.353
  },
  "oklch": {
    "l": 0.6783,
    "c": 0.14619,
    "h": 289.6
  },
  "luminance": 0.29628
}

Semantic roles & 50–950 ramp

primary
#9786EB
secondary
#EEF2D9
accent
#D412B3
background
#FBFAFE
surface
#F6F4FD
border
#D0CED5
text
#121017
muted
#817F85

Preview Lab

Preview with #9786EB

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

Preview Lab → · Contrast checker → · Palette generator →

#9786EB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva