#871A7C#871A7C

#871A7C is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.2% C 0.177 H 332.8°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#871A7C
RGBrgb(135, 26, 124)
HSLhsl(306, 68%, 32%)
HSVhsv(306, 81%, 53%)
CMYKcmyk(0%, 80.7%, 8.1%, 47.1%)
CIE-LABlab(32.58, 54.65, -29.44)
CIE-LCHlch(32.58, 62.07, 331.69°)
OKLaboklab(44.24% 0.1576 -0.0809)
OKLCHoklch(44.24% 0.177 332.8)
XYZxyz(13.9992, 7.3461, 19.7455)
Luminance0.0735 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871A7C #1A8725
analogous
#5C1A87 #871A7C #871A46
triadic
#871A7C #7C871A #1A7C87
tetradic
#871A7C #875C1A #1A8725 #1A4687
square
#871A7C #875C1A #1A8725 #1A4687
split-complementary
#871A7C #46871A #1A875C
monochromatic
#20061E #54104D #871A7C #BA24AB #DA41CB

Accessibility & contrast

On white

8.51
#871A7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#871A7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871A7C
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871A7C#FFFFFF#000000##FFFFFF
##871A7C1.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13437F
Deuteranopia (green-blind)
#405279
Tritanopia (blue-blind)
#8D274B
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #871a7c;
/* rgb */ color: rgb(135, 26, 124);
/* oklch */ color: oklch(44.2% 0.177 332.8);
Tailwind
colors: {
  custom: {
    50: '#ae65a2',
    500: '#871a7c',
    950: '#000000',
  },
}
SCSS
$custom: #871a7c;
$custom-light: #ae65a2;
$custom-dark: #000000;
JSON
{
  "hex": "#871a7c",
  "rgb": {
    "r": 135,
    "g": 26,
    "b": 124
  },
  "hsl": {
    "h": 306.055,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.44239,
    "c": 0.1772,
    "h": 332.8
  },
  "luminance": 0.07345
}

Semantic roles & 50–950 ramp

primary
#871A7C
secondary
#42BA4F
accent
#EB4F3D
background
#FBF6FA
surface
#F6EBF3
border
#D0C6CD
text
#11060F
muted
#807A7F

Preview Lab

Preview with #871A7C

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

Preview Lab → · Contrast checker → · Palette generator →

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