#9787B3#9787B3

#9787B3 is a light, moderate violet. Relative luminance 0.272; OKLCH L 65.3% C 0.067 H 301.2°. Best body text is #000000 at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#9787B3
RGBrgb(151, 135, 179)
HSLhsl(262, 22%, 62%)
HSVhsv(262, 25%, 70%)
CMYKcmyk(15.6%, 24.6%, 0%, 29.8%)
CIE-LABlab(59.12, 14.96, -20.90)
CIE-LCHlch(59.12, 25.70, 305.59°)
OKLaboklab(65.34% 0.0346 -0.0571)
OKLCHoklch(65.34% 0.067 301.2)
XYZxyz(29.5615, 27.1619, 46.3245)
Luminance0.2716 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9787B3 #A3B387
analogous
#878DB3 #9787B3 #AD87B3
triadic
#9787B3 #B39787 #87B397
tetradic
#9787B3 #B3878D #A3B387 #87B3AD
square
#9787B3 #B3878D #A3B387 #87B3AD
split-complementary
#9787B3 #B3AD87 #8DB387
monochromatic
#5A4A75 #77629B #9787B3 #B7ACCB #D8D2E2

Accessibility & contrast

On white

3.26
#9787B3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.43
#9787B3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9787B3
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9787B3#FFFFFF#000000##000000
##9787B31.003.266.436.43
#FFFFFF3.261.0021.0021.00
#0000006.4321.001.001.00
##0000006.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#7E8EB5
Deuteranopia (green-blind)
#818EB2
Tritanopia (blue-blind)
#928D96
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #9787b3;
/* rgb */ color: rgb(151, 135, 179);
/* oklch */ color: oklch(65.3% 0.067 301.2);
Tailwind
colors: {
  custom: {
    50: '#b6aac9',
    500: '#9787b3',
    950: '#000000',
  },
}
SCSS
$custom: #9787b3;
$custom-light: #b6aac9;
$custom-dark: #000000;
JSON
{
  "hex": "#9787b3",
  "rgb": {
    "r": 151,
    "g": 135,
    "b": 179
  },
  "hsl": {
    "h": 261.818,
    "s": 22.449,
    "l": 61.569
  },
  "oklch": {
    "l": 0.65337,
    "c": 0.06679,
    "h": 301.2
  },
  "luminance": 0.27162
}

Semantic roles & 50–950 ramp

primary
#9787B3
secondary
#CDD3C3
accent
#A1457F
background
#FBFAFC
surface
#F6F4F8
border
#D0CED1
text
#111013
muted
#807F82

Preview Lab

Preview with #9787B3

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

Preview Lab → · Contrast checker → · Palette generator →

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