#871B8D#871B8D

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

Color values

HEX#871B8D
RGBrgb(135, 27, 141)
HSLhsl(297, 68%, 33%)
HSVhsv(297, 81%, 55%)
CMYKcmyk(4.3%, 80.9%, 0%, 44.7%)
CIE-LABlab(33.69, 57.17, -38.27)
CIE-LCHlch(33.69, 68.80, 326.20°)
OKLaboklab(45.35% 0.1564 -0.1066)
OKLCHoklch(45.35% 0.189 325.7)
XYZxyz(15.1910, 7.8589, 25.9109)
Luminance0.0786 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871B8D #218D1B
analogous
#4E1B8D #871B8D #8D1B5A
triadic
#871B8D #8D871B #1B8D87
tetradic
#871B8D #8D4E1B #218D1B #1B5A8D
square
#871B8D #8D4E1B #218D1B #1B5A8D
split-complementary
#871B8D #5A8D1B #1B8D4E
monochromatic
#250726 #56115A #871B8D #B825C0 #D447DC

Accessibility & contrast

On white

8.17
#871B8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#871B8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871B8D
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871B8D#FFFFFF#000000##FFFFFF
##871B8D1.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004790
Deuteranopia (green-blind)
#37548A
Tritanopia (blue-blind)
#8A3154
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #871b8d;
/* rgb */ color: rgb(135, 27, 141);
/* oklch */ color: oklch(45.4% 0.189 325.7);
Tailwind
colors: {
  custom: {
    50: '#ae66af',
    500: '#871b8d',
    950: '#000000',
  },
}
SCSS
$custom: #871b8d;
$custom-light: #ae66af;
$custom-dark: #000000;
JSON
{
  "hex": "#871b8d",
  "rgb": {
    "r": 135,
    "g": 27,
    "b": 141
  },
  "hsl": {
    "h": 296.842,
    "s": 67.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.4535,
    "c": 0.1893,
    "h": 325.7
  },
  "luminance": 0.07858
}

Semantic roles & 50–950 ramp

primary
#871B8D
secondary
#4DBD46
accent
#EB3D46
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #871B8D

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

Preview Lab → · Contrast checker → · Palette generator →

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