#9877BB#9877BB

#9877BB is a light, moderate violet. Relative luminance 0.235; OKLCH L 62.7% C 0.106 H 305.9°. Best body text is #000000 at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#9877BB
RGBrgb(152, 119, 187)
HSLhsl(269, 33%, 60%)
HSVhsv(269, 36%, 73%)
CMYKcmyk(18.7%, 36.4%, 0%, 26.7%)
CIE-LABlab(55.54, 26.35, -30.99)
CIE-LCHlch(55.54, 40.68, 310.38°)
OKLaboklab(62.72% 0.0619 -0.0857)
OKLCHoklch(62.72% 0.106 305.9)
XYZxyz(28.5136, 23.4571, 50.0296)
Luminance0.2346 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9877BB #9ABB77
analogous
#7778BB #9877BB #BA77BB
triadic
#9877BB #BB9877 #77BB98
tetradic
#9877BB #BB7778 #9ABB77 #77BBBA
square
#9877BB #BB7778 #9ABB77 #77BBBA
split-complementary
#9877BB #BBBA77 #78BB77
monochromatic
#5B3D7A #7952A3 #9877BB #B7A0CF #D6C9E4

Accessibility & contrast

On white

3.69
#9877BB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.69
#9877BB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9877BB
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9877BB#FFFFFF#000000##000000
##9877BB1.003.695.695.69
#FFFFFF3.691.0021.0021.00
#0000005.6921.001.001.00
##0000005.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6984BE
Deuteranopia (green-blind)
#7085B9
Tritanopia (blue-blind)
#938190
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #9877bb;
/* rgb */ color: rgb(152, 119, 187);
/* oklch */ color: oklch(62.7% 0.106 305.9);
Tailwind
colors: {
  custom: {
    50: '#b79ecf',
    500: '#9877bb',
    950: '#000000',
  },
}
SCSS
$custom: #9877bb;
$custom-light: #b79ecf;
$custom-dark: #000000;
JSON
{
  "hex": "#9877bb",
  "rgb": {
    "r": 152,
    "g": 119,
    "b": 187
  },
  "hsl": {
    "h": 269.118,
    "s": 33.333,
    "l": 60
  },
  "oklch": {
    "l": 0.6272,
    "c": 0.10572,
    "h": 305.9
  },
  "luminance": 0.23457
}

Semantic roles & 50–950 ramp

primary
#9877BB
secondary
#C7D4BA
accent
#C95E95
background
#FBF9FC
surface
#F6F2F9
border
#D0CCD2
text
#110E14
muted
#807E82

Preview Lab

Preview with #9877BB

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

Preview Lab → · Contrast checker → · Palette generator →

#9877BB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva