#9786EA#9786EA

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

Color values

HEX#9786EA
RGBrgb(151, 134, 234)
HSLhsl(250, 70%, 72%)
HSVhsv(250, 43%, 92%)
CMYKcmyk(35.5%, 42.7%, 0%, 8.2%)
CIE-LABlab(61.28, 29.11, -48.45)
CIE-LCHlch(61.28, 56.52, 301.00°)
OKLaboklab(67.78% 0.049 -0.1363)
OKLCHoklch(67.78% 0.145 289.8)
XYZxyz(36.1349, 29.5691, 81.6295)
Luminance0.2957 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9786EA #D9EA86
analogous
#86A7EA #9786EA #C986EA
triadic
#9786EA #EA9786 #86EA97
tetradic
#9786EA #EA86A7 #D9EA86 #86EAC9
square
#9786EA #EA86A7 #D9EA86 #86EAC9
split-complementary
#9786EA #EAC986 #A7EA86
monochromatic
#4224D1 #6A52E1 #9786EA #C4BAF3 #E9E5FA

Accessibility & contrast

On white

3.04
#9786EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.91
#9786EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9786EA
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9786EA#FFFFFF#000000##000000
##9786EA1.003.046.916.91
#FFFFFF3.041.0021.0021.00
#0000006.9121.001.001.00
##0000006.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6596EE
Deuteranopia (green-blind)
#6592E8
Tritanopia (blue-blind)
#8299AD
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #9786ea;
/* rgb */ color: rgb(151, 134, 234);
/* oklch */ color: oklch(67.8% 0.145 289.8);
Tailwind
colors: {
  custom: {
    50: '#b9a9f1',
    500: '#9786ea',
    950: '#000000',
  },
}
SCSS
$custom: #9786ea;
$custom-light: #b9a9f1;
$custom-dark: #000000;
JSON
{
  "hex": "#9786ea",
  "rgb": {
    "r": 151,
    "g": 134,
    "b": 234
  },
  "hsl": {
    "h": 250.2,
    "s": 70.423,
    "l": 72.157
  },
  "oklch": {
    "l": 0.67776,
    "c": 0.14484,
    "h": 289.8
  },
  "luminance": 0.2957
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9786EA

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

Preview Lab → · Contrast checker → · Palette generator →

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