#9786CA#9786CA

#9786CA is a light, moderate violet. Relative luminance 0.279; OKLCH L 66.2% C 0.101 H 295.0°. Best body text is #000000 at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#9786CA
RGBrgb(151, 134, 202)
HSLhsl(255, 39%, 66%)
HSVhsv(255, 34%, 79%)
CMYKcmyk(25.2%, 33.7%, 0%, 20.8%)
CIE-LABlab(59.79, 20.95, -32.90)
CIE-LCHlch(59.79, 39.00, 302.49°)
OKLaboklab(66.16% 0.0425 -0.0913)
OKLCHoklch(66.16% 0.101 295)
XYZxyz(31.9457, 27.8934, 59.5666)
Luminance0.2789 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9786CA #B9CA86
analogous
#8697CA #9786CA #B986CA
triadic
#9786CA #CA9786 #86CA97
tetradic
#9786CA #CA8697 #B9CA86 #86CAB9
square
#9786CA #CA8697 #B9CA86 #86CAB9
split-complementary
#9786CA #CAB986 #97CA86
monochromatic
#564195 #725BB7 #9786CA #BCB1DD #E0DBEF

Accessibility & contrast

On white

3.19
#9786CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.58
#9786CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9786CA
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9786CA#FFFFFF#000000##000000
##9786CA1.003.196.586.58
#FFFFFF3.191.0021.0021.00
#0000006.5821.001.001.00
##0000006.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#7591CD
Deuteranopia (green-blind)
#778FC8
Tritanopia (blue-blind)
#8D919F
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #9786ca;
/* rgb */ color: rgb(151, 134, 202);
/* oklch */ color: oklch(66.2% 0.101 295.0);
Tailwind
colors: {
  custom: {
    50: '#b7a9da',
    500: '#9786ca',
    950: '#000000',
  },
}
SCSS
$custom: #9786ca;
$custom-light: #b7a9da;
$custom-dark: #000000;
JSON
{
  "hex": "#9786ca",
  "rgb": {
    "r": 151,
    "g": 134,
    "b": 202
  },
  "hsl": {
    "h": 255,
    "s": 39.08,
    "l": 65.882
  },
  "oklch": {
    "l": 0.66155,
    "c": 0.10068,
    "h": 295
  },
  "luminance": 0.27894
}

Semantic roles & 50–950 ramp

primary
#9786CA
secondary
#DCE1CB
accent
#B23392
background
#FBFAFD
surface
#F6F4FA
border
#D0CED3
text
#110F15
muted
#807F83

Preview Lab

Preview with #9786CA

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

Preview Lab → · Contrast checker → · Palette generator →

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