#871B8B#871B8B

#871B8B is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.2% C 0.188 H 326.5°. Best body text is #FFFFFF at 8.20:1 contrast (WCAG AA passes).

Color values

HEX#871B8B
RGBrgb(135, 27, 139)
HSLhsl(298, 67%, 33%)
HSVhsv(298, 81%, 55%)
CMYKcmyk(2.9%, 80.6%, 0%, 45.5%)
CIE-LABlab(33.56, 56.83, -37.23)
CIE-LCHlch(33.56, 67.94, 326.77°)
OKLaboklab(45.22% 0.1566 -0.1036)
OKLCHoklch(45.22% 0.188 326.5)
XYZxyz(15.0435, 7.7999, 25.1343)
Luminance0.0780 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871B8B #1F8B1B
analogous
#4F1B8B #871B8B #8B1B57
triadic
#871B8B #8B871B #1B8B87
tetradic
#871B8B #8B4F1B #1F8B1B #1B578B
square
#871B8B #8B4F1B #1F8B1B #1B578B
split-complementary
#871B8B #578B1B #1B8B4F
monochromatic
#230725 #551158 #871B8B #B925BE #D645DB

Accessibility & contrast

On white

8.20
#871B8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#871B8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871B8B
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871B8B#FFFFFF#000000##FFFFFF
##871B8B1.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468E
Deuteranopia (green-blind)
#385388
Tritanopia (blue-blind)
#8B3053
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #871b8b;
/* rgb */ color: rgb(135, 27, 139);
/* oklch */ color: oklch(45.2% 0.188 326.5);
Tailwind
colors: {
  custom: {
    50: '#ae66ad',
    500: '#871b8b',
    950: '#000000',
  },
}
SCSS
$custom: #871b8b;
$custom-light: #ae66ad;
$custom-dark: #000000;
JSON
{
  "hex": "#871b8b",
  "rgb": {
    "r": 135,
    "g": 27,
    "b": 139
  },
  "hsl": {
    "h": 297.857,
    "s": 67.47,
    "l": 32.549
  },
  "oklch": {
    "l": 0.45222,
    "c": 0.18773,
    "h": 326.5
  },
  "luminance": 0.07799
}

Semantic roles & 50–950 ramp

primary
#871B8B
secondary
#4ABC45
accent
#EA3D44
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #871B8B

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

Preview Lab → · Contrast checker → · Palette generator →

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