#871A7F#871A7F

#871A7F is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.4% C 0.179 H 331.5°. Best body text is #FFFFFF at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#871A7F
RGBrgb(135, 26, 127)
HSLhsl(304, 68%, 32%)
HSVhsv(304, 81%, 53%)
CMYKcmyk(0%, 80.7%, 5.9%, 47.1%)
CIE-LABlab(32.75, 55.12, -31.06)
CIE-LCHlch(32.75, 63.27, 330.60°)
OKLaboklab(44.42% 0.1577 -0.0856)
OKLCHoklch(44.42% 0.179 331.5)
XYZxyz(14.1918, 7.4232, 20.7599)
Luminance0.0742 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871A7F #1A8722
analogous
#591A87 #871A7F #871A49
triadic
#871A7F #7F871A #1A7F87
tetradic
#871A7F #87591A #1A8722 #1A4987
square
#871A7F #87591A #1A8722 #1A4987
split-complementary
#871A7F #49871A #1A8759
monochromatic
#20061E #54104F #871A7F #BA24AF #DA41CF

Accessibility & contrast

On white

8.45
#871A7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#871A7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871A7F
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871A7F#FFFFFF#000000##FFFFFF
##871A7F1.008.452.488.45
#FFFFFF8.451.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E4382
Deuteranopia (green-blind)
#3F527C
Tritanopia (blue-blind)
#8D294C
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #871a7f;
/* rgb */ color: rgb(135, 26, 127);
/* oklch */ color: oklch(44.4% 0.179 331.5);
Tailwind
colors: {
  custom: {
    50: '#ae65a4',
    500: '#871a7f',
    950: '#000000',
  },
}
SCSS
$custom: #871a7f;
$custom-light: #ae65a4;
$custom-dark: #000000;
JSON
{
  "hex": "#871a7f",
  "rgb": {
    "r": 135,
    "g": 26,
    "b": 127
  },
  "hsl": {
    "h": 304.404,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.44415,
    "c": 0.17944,
    "h": 331.5
  },
  "luminance": 0.07422
}

Semantic roles & 50–950 ramp

primary
#871A7F
secondary
#42BA4B
accent
#EB4A3D
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11060F
muted
#807A7F

Preview Lab

Preview with #871A7F

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

Preview Lab → · Contrast checker → · Palette generator →

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