#9787C3#9787C3

#9787C3 is a light, moderate violet. Relative luminance 0.278; OKLCH L 66.0% C 0.089 H 296.1°. Best body text is #000000 at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#9787C3
RGBrgb(151, 135, 195)
HSLhsl(256, 33%, 65%)
HSVhsv(256, 31%, 76%)
CMYKcmyk(22.6%, 30.8%, 0%, 23.5%)
CIE-LABlab(59.75, 18.68, -29.01)
CIE-LCHlch(59.75, 34.50, 302.77°)
OKLaboklab(66.03% 0.0393 -0.0801)
OKLCHoklch(66.03% 0.089 296.1)
XYZxyz(31.2746, 27.8471, 55.3465)
Luminance0.2785 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9787C3 #B3C387
analogous
#8795C3 #9787C3 #B587C3
triadic
#9787C3 #C39787 #87C397
tetradic
#9787C3 #C38795 #B3C387 #87C3B5
square
#9787C3 #C38795 #B3C387 #87C3B5
split-complementary
#9787C3 #C3B587 #95C387
monochromatic
#58458A #745EAF #9787C3 #BAB0D7 #DED9EC

Accessibility & contrast

On white

3.20
#9787C3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.57
#9787C3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9787C3
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9787C3#FFFFFF#000000##000000
##9787C31.003.206.576.57
#FFFFFF3.201.0021.0021.00
#0000006.5721.001.001.00
##0000006.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#7990C5
Deuteranopia (green-blind)
#7B8FC1
Tritanopia (blue-blind)
#8E919D
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #9787c3;
/* rgb */ color: rgb(151, 135, 195);
/* oklch */ color: oklch(66.0% 0.089 296.1);
Tailwind
colors: {
  custom: {
    50: '#b6aad5',
    500: '#9787c3',
    950: '#000000',
  },
}
SCSS
$custom: #9787c3;
$custom-light: #b6aad5;
$custom-dark: #000000;
JSON
{
  "hex": "#9787c3",
  "rgb": {
    "r": 151,
    "g": 135,
    "b": 195
  },
  "hsl": {
    "h": 256,
    "s": 33.333,
    "l": 64.706
  },
  "oklch": {
    "l": 0.66026,
    "c": 0.08924,
    "h": 296.1
  },
  "luminance": 0.27847
}

Semantic roles & 50–950 ramp

primary
#9787C3
secondary
#D8DDC9
accent
#AC398E
background
#FBFAFD
surface
#F6F4FA
border
#D0CED3
text
#111014
muted
#807F83

Preview Lab

Preview with #9787C3

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

Preview Lab → · Contrast checker → · Palette generator →

#9787C3 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva