#871A8F#871A8F

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

Color values

HEX#871A8F
RGBrgb(135, 26, 143)
HSLhsl(296, 69%, 33%)
HSVhsv(296, 82%, 56%)
CMYKcmyk(5.6%, 81.8%, 0%, 43.9%)
CIE-LABlab(33.72, 57.80, -39.45)
CIE-LCHlch(33.72, 69.98, 325.68°)
OKLaboklab(45.41% 0.157 -0.11)
OKLCHoklch(45.41% 0.192 325)
XYZxyz(15.3186, 7.8739, 26.6942)
Luminance0.0787 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871A8F #228F1A
analogous
#4C1A8F #871A8F #8F1A5D
triadic
#871A8F #8F871A #1A8F87
tetradic
#871A8F #8F4C1A #228F1A #1A5D8F
square
#871A8F #8F4C1A #228F1A #1A5D8F
split-complementary
#871A8F #5D8F1A #1A8F4C
monochromatic
#250727 #56115B #871A8F #B823C3 #D346DD

Accessibility & contrast

On white

8.16
#871A8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #871A8F
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871A8F#FFFFFF#000000##FFFFFF
##871A8F1.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #871a8f;
/* rgb */ color: rgb(135, 26, 143);
/* oklch */ color: oklch(45.4% 0.192 325.0);
Tailwind
colors: {
  custom: {
    50: '#ae66b0',
    500: '#871a8f',
    950: '#000000',
  },
}
SCSS
$custom: #871a8f;
$custom-light: #ae66b0;
$custom-dark: #000000;
JSON
{
  "hex": "#871a8f",
  "rgb": {
    "r": 135,
    "g": 26,
    "b": 143
  },
  "hsl": {
    "h": 295.897,
    "s": 69.231,
    "l": 33.137
  },
  "oklch": {
    "l": 0.45413,
    "c": 0.19175,
    "h": 325
  },
  "luminance": 0.07873
}

Semantic roles & 50–950 ramp

primary
#871A8F
secondary
#4EBF46
accent
#EC3C48
background
#FBF6FA
surface
#F6EBF5
border
#D0C6CF
text
#110710
muted
#807A7F

Preview Lab

Preview with #871A8F

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

Preview Lab → · Contrast checker → · Palette generator →

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