#9787B2#9787B2

#9787B2 is a light, moderate violet. Relative luminance 0.271; OKLCH L 65.3% C 0.065 H 301.6°. Best body text is #000000 at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#9787B2
RGBrgb(151, 135, 178)
HSLhsl(262, 22%, 61%)
HSVhsv(262, 24%, 70%)
CMYKcmyk(15.2%, 24.2%, 0%, 30.2%)
CIE-LABlab(59.09, 14.73, -20.39)
CIE-LCHlch(59.09, 25.15, 305.85°)
OKLaboklab(65.3% 0.0343 -0.0557)
OKLCHoklch(65.3% 0.065 301.6)
XYZxyz(29.4607, 27.1216, 45.7938)
Luminance0.2712 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9787B2 #A2B287
analogous
#878DB2 #9787B2 #AD87B2
triadic
#9787B2 #B29787 #87B297
tetradic
#9787B2 #B2878D #A2B287 #87B2AD
square
#9787B2 #B2878D #A2B287 #87B2AD
split-complementary
#9787B2 #B2AD87 #8DB287
monochromatic
#5A4A74 #776299 #9787B2 #B7ACCA #D8D2E2

Accessibility & contrast

On white

3.27
#9787B2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.42
#9787B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9787B2
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9787B2#FFFFFF#000000##000000
##9787B21.003.276.426.42
#FFFFFF3.271.0021.0021.00
#0000006.4221.001.001.00
##0000006.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#7F8EB4
Deuteranopia (green-blind)
#818EB1
Tritanopia (blue-blind)
#938D96
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #9787b2;
/* rgb */ color: rgb(151, 135, 178);
/* oklch */ color: oklch(65.3% 0.065 301.6);
Tailwind
colors: {
  custom: {
    50: '#b6aac9',
    500: '#9787b2',
    950: '#000000',
  },
}
SCSS
$custom: #9787b2;
$custom-light: #b6aac9;
$custom-dark: #000000;
JSON
{
  "hex": "#9787b2",
  "rgb": {
    "r": 151,
    "g": 135,
    "b": 178
  },
  "hsl": {
    "h": 262.326,
    "s": 21.827,
    "l": 61.373
  },
  "oklch": {
    "l": 0.65296,
    "c": 0.06539,
    "h": 301.6
  },
  "luminance": 0.27122
}

Semantic roles & 50–950 ramp

primary
#9787B2
secondary
#CCD2C2
accent
#A0457E
background
#FBFAFC
surface
#F6F4F8
border
#D0CED1
text
#111013
muted
#807F82

Preview Lab

Preview with #9787B2

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

Preview Lab → · Contrast checker → · Palette generator →

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