#871B8F#871B8F

#871B8F is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.5% C 0.191 H 325.0°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#871B8F
RGBrgb(135, 27, 143)
HSLhsl(296, 68%, 33%)
HSVhsv(296, 81%, 56%)
CMYKcmyk(5.6%, 81.1%, 0%, 43.9%)
CIE-LABlab(33.81, 57.52, -39.30)
CIE-LCHlch(33.81, 69.67, 325.66°)
OKLaboklab(45.48% 0.1563 -0.1096)
OKLCHoklch(45.48% 0.191 325)
XYZxyz(15.3412, 7.9190, 26.7018)
Luminance0.0792 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871B8F #238F1B
analogous
#4D1B8F #871B8F #8F1B5D
triadic
#871B8F #8F871B #1B8F87
tetradic
#871B8F #8F4D1B #238F1B #1B5D8F
square
#871B8F #8F4D1B #238F1B #1B5D8F
split-complementary
#871B8F #5D8F1B #1B8F4D
monochromatic
#260828 #56115C #871B8F #B825C2 #D248DC

Accessibility & contrast

On white

8.13
#871B8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #871B8F
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871B8F#FFFFFF#000000##FFFFFF
##871B8F1.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004792
Deuteranopia (green-blind)
#35548C
Tritanopia (blue-blind)
#8A3256
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #871b8f;
/* rgb */ color: rgb(135, 27, 143);
/* oklch */ color: oklch(45.5% 0.191 325.0);
Tailwind
colors: {
  custom: {
    50: '#ae66b0',
    500: '#871b8f',
    950: '#000000',
  },
}
SCSS
$custom: #871b8f;
$custom-light: #ae66b0;
$custom-dark: #000000;
JSON
{
  "hex": "#871b8f",
  "rgb": {
    "r": 135,
    "g": 27,
    "b": 143
  },
  "hsl": {
    "h": 295.862,
    "s": 68.235,
    "l": 33.333
  },
  "oklch": {
    "l": 0.4548,
    "c": 0.19089,
    "h": 325
  },
  "luminance": 0.07918
}

Semantic roles & 50–950 ramp

primary
#871B8F
secondary
#50BE48
accent
#EB3D49
background
#FBF6FA
surface
#F6EBF5
border
#D0C6CF
text
#110710
muted
#807A7F

Preview Lab

Preview with #871B8F

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

Preview Lab → · Contrast checker → · Palette generator →

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