#9877BA#9877BA

#9877BA is a light, moderate violet. Relative luminance 0.234; OKLCH L 62.7% C 0.104 H 306.2°. Best body text is #000000 at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#9877BA
RGBrgb(152, 119, 186)
HSLhsl(270, 33%, 60%)
HSVhsv(270, 36%, 73%)
CMYKcmyk(18.3%, 36%, 0%, 27.1%)
CIE-LABlab(55.50, 26.12, -30.48)
CIE-LCHlch(55.50, 40.14, 310.60°)
OKLaboklab(62.67% 0.0617 -0.0842)
OKLCHoklch(62.67% 0.104 306.2)
XYZxyz(28.4069, 23.4144, 49.4678)
Luminance0.2341 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9877BA #99BA77
analogous
#7778BA #9877BA #B977BA
triadic
#9877BA #BA9877 #77BA98
tetradic
#9877BA #BA7778 #99BA77 #77BAB9
square
#9877BA #BA7778 #99BA77 #77BAB9
split-complementary
#9877BA #BAB977 #78BA77
monochromatic
#5B3D79 #7952A2 #9877BA #B7A0CF #D5C8E3

Accessibility & contrast

On white

3.70
#9877BA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.68
#9877BA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9877BA
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9877BA#FFFFFF#000000##000000
##9877BA1.003.705.685.68
#FFFFFF3.701.0021.0021.00
#0000005.6821.001.001.00
##0000005.6821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9877ba;
/* rgb */ color: rgb(152, 119, 186);
/* oklch */ color: oklch(62.7% 0.104 306.2);
Tailwind
colors: {
  custom: {
    50: '#b79ecf',
    500: '#9877ba',
    950: '#000000',
  },
}
SCSS
$custom: #9877ba;
$custom-light: #b79ecf;
$custom-dark: #000000;
JSON
{
  "hex": "#9877ba",
  "rgb": {
    "r": 152,
    "g": 119,
    "b": 186
  },
  "hsl": {
    "h": 269.552,
    "s": 32.683,
    "l": 59.804
  },
  "oklch": {
    "l": 0.62673,
    "c": 0.10441,
    "h": 306.2
  },
  "luminance": 0.23414
}

Semantic roles & 50–950 ramp

primary
#9877BA
secondary
#C7D3B9
accent
#C95F95
background
#FBF9FC
surface
#F6F2F9
border
#D0CCD2
text
#110E13
muted
#807E82

Preview Lab

Preview with #9877BA

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

Preview Lab → · Contrast checker → · Palette generator →

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