#871A8B#871A8B

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

Color values

HEX#871A8B
RGBrgb(135, 26, 139)
HSLhsl(298, 68%, 32%)
HSVhsv(298, 81%, 55%)
CMYKcmyk(2.9%, 81.3%, 0%, 45.5%)
CIE-LABlab(33.47, 57.11, -37.39)
CIE-LCHlch(33.47, 68.26, 326.79°)
OKLaboklab(45.15% 0.1573 -0.104)
OKLCHoklch(45.15% 0.189 326.5)
XYZxyz(15.0210, 7.7548, 25.1268)
Luminance0.0775 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871A8B #1E8B1A
analogous
#4E1A8B #871A8B #8B1A57
triadic
#871A8B #8B871A #1A8B87
tetradic
#871A8B #8B4E1A #1E8B1A #1A578B
square
#871A8B #8B4E1A #1E8B1A #1A578B
split-complementary
#871A8B #578B1A #1A8B4E
monochromatic
#230724 #551057 #871A8B #B924BF #D743DC

Accessibility & contrast

On white

8.23
#871A8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#871A8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871A8B
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871A8B#FFFFFF#000000##FFFFFF
##871A8B1.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #871a8b;
/* rgb */ color: rgb(135, 26, 139);
/* oklch */ color: oklch(45.2% 0.189 326.5);
Tailwind
colors: {
  custom: {
    50: '#ae66ad',
    500: '#871a8b',
    950: '#000000',
  },
}
SCSS
$custom: #871a8b;
$custom-light: #ae66ad;
$custom-dark: #000000;
JSON
{
  "hex": "#871a8b",
  "rgb": {
    "r": 135,
    "g": 26,
    "b": 139
  },
  "hsl": {
    "h": 297.876,
    "s": 68.485,
    "l": 32.353
  },
  "oklch": {
    "l": 0.45154,
    "c": 0.18862,
    "h": 326.5
  },
  "luminance": 0.07754
}

Semantic roles & 50–950 ramp

primary
#871A8B
secondary
#48BD44
accent
#EB3C43
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110610
muted
#807A7F

Preview Lab

Preview with #871A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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