#9871A2#9871A2

#9871A2 is a mid, moderate purple. Relative luminance 0.211; OKLCH L 60.5% C 0.085 H 319.3°. Best body text is #000000 at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#9871A2
RGBrgb(152, 113, 162)
HSLhsl(288, 21%, 54%)
HSVhsv(288, 30%, 64%)
CMYKcmyk(6.2%, 30.2%, 0%, 36.5%)
CIE-LABlab(53.05, 24.31, -20.40)
CIE-LCHlch(53.05, 31.73, 320.00°)
OKLaboklab(60.49% 0.0646 -0.0555)
OKLCHoklch(60.49% 0.085 319.3)
XYZxyz(25.3747, 21.0949, 36.9104)
Luminance0.2109 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9871A2 #7BA271
analogous
#8071A2 #9871A2 #A27194
triadic
#9871A2 #A29871 #71A298
tetradic
#9871A2 #A28071 #7BA271 #7194A2
square
#9871A2 #A28071 #7BA271 #7194A2
split-complementary
#9871A2 #94A271 #71A280
monochromatic
#563C5C #785581 #9871A2 #B396BA #CEBBD2

Accessibility & contrast

On white

4.02
#9871A2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.22
#9871A2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9871A2
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9871A2#FFFFFF#000000##000000
##9871A21.004.025.225.22
#FFFFFF4.021.0021.0021.00
#0000005.2221.001.001.00
##0000005.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B7CA4
Deuteranopia (green-blind)
#7480A0
Tritanopia (blue-blind)
#997683
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #9871a2;
/* rgb */ color: rgb(152, 113, 162);
/* oklch */ color: oklch(60.5% 0.085 319.3);
Tailwind
colors: {
  custom: {
    50: '#b79abd',
    500: '#9871a2',
    950: '#000000',
  },
}
SCSS
$custom: #9871a2;
$custom-light: #b79abd;
$custom-dark: #000000;
JSON
{
  "hex": "#9871a2",
  "rgb": {
    "r": 152,
    "g": 113,
    "b": 162
  },
  "hsl": {
    "h": 287.755,
    "s": 20.851,
    "l": 53.922
  },
  "oklch": {
    "l": 0.60488,
    "c": 0.08516,
    "h": 319.3
  },
  "luminance": 0.21094
}

Semantic roles & 50–950 ramp

primary
#9871A2
secondary
#B1C2AD
accent
#BD6A7B
background
#FBF9FB
surface
#F6F2F6
border
#D0CCD0
text
#110E12
muted
#807E81

Preview Lab

Preview with #9871A2

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

Preview Lab → · Contrast checker → · Palette generator →

#9871A2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva