#871A8C#871A8C

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

Color values

HEX#871A8C
RGBrgb(135, 26, 140)
HSLhsl(297, 69%, 33%)
HSVhsv(297, 81%, 55%)
CMYKcmyk(3.6%, 81.4%, 0%, 45.1%)
CIE-LABlab(33.53, 57.28, -37.91)
CIE-LCHlch(33.53, 68.69, 326.50°)
OKLaboklab(45.22% 0.1573 -0.1055)
OKLCHoklch(45.22% 0.189 326.1)
XYZxyz(15.0944, 7.7842, 25.5133)
Luminance0.0778 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871A8C #1F8C1A
analogous
#4E1A8C #871A8C #8C1A58
triadic
#871A8C #8C871A #1A8C87
tetradic
#871A8C #8C4E1A #1F8C1A #1A588C
square
#871A8C #8C4E1A #1F8C1A #1A588C
split-complementary
#871A8C #588C1A #1A8C4E
monochromatic
#230725 #551058 #871A8C #B924C0 #D644DC

Accessibility & contrast

On white

8.21
#871A8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#871A8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871A8C
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871A8C#FFFFFF#000000##FFFFFF
##871A8C1.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468F
Deuteranopia (green-blind)
#375389
Tritanopia (blue-blind)
#8B3054
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #871a8c;
/* rgb */ color: rgb(135, 26, 140);
/* oklch */ color: oklch(45.2% 0.189 326.1);
Tailwind
colors: {
  custom: {
    50: '#ae66ae',
    500: '#871a8c',
    950: '#000000',
  },
}
SCSS
$custom: #871a8c;
$custom-light: #ae66ae;
$custom-dark: #000000;
JSON
{
  "hex": "#871a8c",
  "rgb": {
    "r": 135,
    "g": 26,
    "b": 140
  },
  "hsl": {
    "h": 297.368,
    "s": 68.675,
    "l": 32.549
  },
  "oklch": {
    "l": 0.45218,
    "c": 0.18939,
    "h": 326.1
  },
  "luminance": 0.07783
}

Semantic roles & 50–950 ramp

primary
#871A8C
secondary
#4ABE44
accent
#EC3C44
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #871A8C

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

Preview Lab → · Contrast checker → · Palette generator →

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