#871B7C#871B7C

#871B7C is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.3% C 0.176 H 332.8°. Best body text is #FFFFFF at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#871B7C
RGBrgb(135, 27, 124)
HSLhsl(306, 67%, 32%)
HSVhsv(306, 80%, 53%)
CMYKcmyk(0%, 80%, 8.1%, 47.1%)
CIE-LABlab(32.68, 54.36, -29.29)
CIE-LCHlch(32.68, 61.75, 331.69°)
OKLaboklab(44.31% 0.1568 -0.0805)
OKLCHoklch(44.31% 0.176 332.8)
XYZxyz(14.0218, 7.3912, 19.7530)
Luminance0.0739 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871B7C #1B8726
analogous
#5C1B87 #871B7C #871B46
triadic
#871B7C #7C871B #1B7C87
tetradic
#871B7C #875C1B #1B8726 #1B4687
square
#871B7C #875C1B #1B8726 #1B4687
split-complementary
#871B7C #46871B #1B875C
monochromatic
#21071E #54114D #871B7C #BA25AB #D943CA

Accessibility & contrast

On white

8.47
#871B7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#871B7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871B7C
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871B7C#FFFFFF#000000##FFFFFF
##871B7C1.008.472.488.47
#FFFFFF8.471.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#14437F
Deuteranopia (green-blind)
#415279
Tritanopia (blue-blind)
#8D284B
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #871b7c;
/* rgb */ color: rgb(135, 27, 124);
/* oklch */ color: oklch(44.3% 0.176 332.8);
Tailwind
colors: {
  custom: {
    50: '#ae65a2',
    500: '#871b7c',
    950: '#000000',
  },
}
SCSS
$custom: #871b7c;
$custom-light: #ae65a2;
$custom-dark: #000000;
JSON
{
  "hex": "#871b7c",
  "rgb": {
    "r": 135,
    "g": 27,
    "b": 124
  },
  "hsl": {
    "h": 306.111,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.4431,
    "c": 0.17626,
    "h": 332.8
  },
  "luminance": 0.0739
}

Semantic roles & 50–950 ramp

primary
#871B7C
secondary
#44BA50
accent
#EA503E
background
#FBF6FA
surface
#F6EBF3
border
#D0C6CD
text
#11060F
muted
#807A7F

Preview Lab

Preview with #871B7C

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

Preview Lab → · Contrast checker → · Palette generator →

#871B7C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva