#871A7E#871A7E

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

Color values

HEX#871A7E
RGBrgb(135, 26, 126)
HSLhsl(305, 68%, 32%)
HSVhsv(305, 81%, 53%)
CMYKcmyk(0%, 80.7%, 6.7%, 47.1%)
CIE-LABlab(32.69, 54.96, -30.52)
CIE-LCHlch(32.69, 62.87, 330.96°)
OKLaboklab(44.36% 0.1577 -0.0841)
OKLCHoklch(44.36% 0.179 331.9)
XYZxyz(14.1270, 7.3972, 20.4184)
Luminance0.0740 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871A7E #1A8723
analogous
#5A1A87 #871A7E #871A48
triadic
#871A7E #7E871A #1A7E87
tetradic
#871A7E #875A1A #1A8723 #1A4887
square
#871A7E #875A1A #1A8723 #1A4887
split-complementary
#871A7E #48871A #1A875A
monochromatic
#20061E #54104E #871A7E #BA24AE #DA41CE

Accessibility & contrast

On white

8.47
#871A7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #871A7E
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871A7E#FFFFFF#000000##FFFFFF
##871A7E1.008.472.488.47
#FFFFFF8.471.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#104381
Deuteranopia (green-blind)
#3F527B
Tritanopia (blue-blind)
#8D284C
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #871a7e;
/* rgb */ color: rgb(135, 26, 126);
/* oklch */ color: oklch(44.4% 0.179 331.9);
Tailwind
colors: {
  custom: {
    50: '#ae65a4',
    500: '#871a7e',
    950: '#000000',
  },
}
SCSS
$custom: #871a7e;
$custom-light: #ae65a4;
$custom-dark: #000000;
JSON
{
  "hex": "#871a7e",
  "rgb": {
    "r": 135,
    "g": 26,
    "b": 126
  },
  "hsl": {
    "h": 304.954,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.44356,
    "c": 0.17868,
    "h": 331.9
  },
  "luminance": 0.07396
}

Semantic roles & 50–950 ramp

primary
#871A7E
secondary
#42BA4C
accent
#EB4C3D
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11060F
muted
#807A7F

Preview Lab

Preview with #871A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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