#871B8E#871B8E

#871B8E is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.4% C 0.190 H 325.3°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#871B8E
RGBrgb(135, 27, 142)
HSLhsl(296, 68%, 33%)
HSVhsv(296, 81%, 56%)
CMYKcmyk(4.9%, 81%, 0%, 44.3%)
CIE-LABlab(33.75, 57.35, -38.79)
CIE-LCHlch(33.75, 69.23, 325.93°)
OKLaboklab(45.42% 0.1564 -0.1081)
OKLCHoklch(45.42% 0.19 325.3)
XYZxyz(15.2657, 7.8888, 26.3046)
Luminance0.0789 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871B8E #228E1B
analogous
#4D1B8E #871B8E #8E1B5B
triadic
#871B8E #8E871B #1B8E87
tetradic
#871B8E #8E4D1B #228E1B #1B5B8E
square
#871B8E #8E4D1B #228E1B #1B5B8E
split-complementary
#871B8E #5B8E1B #1B8E4D
monochromatic
#250727 #56115B #871B8E #B825C1 #D347DC

Accessibility & contrast

On white

8.15
#871B8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#871B8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871B8E
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871B8E#FFFFFF#000000##FFFFFF
##871B8E1.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004791
Deuteranopia (green-blind)
#36548B
Tritanopia (blue-blind)
#8A3155
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #871b8e;
/* rgb */ color: rgb(135, 27, 142);
/* oklch */ color: oklch(45.4% 0.190 325.3);
Tailwind
colors: {
  custom: {
    50: '#ae66b0',
    500: '#871b8e',
    950: '#000000',
  },
}
SCSS
$custom: #871b8e;
$custom-light: #ae66b0;
$custom-dark: #000000;
JSON
{
  "hex": "#871b8e",
  "rgb": {
    "r": 135,
    "g": 27,
    "b": 142
  },
  "hsl": {
    "h": 296.348,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.45415,
    "c": 0.1901,
    "h": 325.3
  },
  "luminance": 0.07888
}

Semantic roles & 50–950 ramp

primary
#871B8E
secondary
#4EBE47
accent
#EB3D47
background
#FBF6FA
surface
#F6EBF5
border
#D0C6CF
text
#110710
muted
#807A7F

Preview Lab

Preview with #871B8E

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

Preview Lab → · Contrast checker → · Palette generator →

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