#871F7F#871F7F

#871F7F is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.8% C 0.174 H 331.5°. Best body text is #FFFFFF at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#871F7F
RGBrgb(135, 31, 127)
HSLhsl(305, 63%, 33%)
HSVhsv(305, 77%, 53%)
CMYKcmyk(0%, 77%, 5.9%, 47.1%)
CIE-LABlab(33.27, 53.62, -30.23)
CIE-LCHlch(33.27, 61.56, 330.59°)
OKLaboklab(44.79% 0.1533 -0.0833)
OKLCHoklch(44.79% 0.174 331.5)
XYZxyz(14.3124, 7.6643, 20.8001)
Luminance0.0766 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871F7F #1F8727
analogous
#5B1F87 #871F7F #871F4B
triadic
#871F7F #7F871F #1F7F87
tetradic
#871F7F #875B1F #1F8727 #1F4B87
square
#871F7F #875B1F #1F8727 #1F4B87
split-complementary
#871F7F #4B871F #1F875B
monochromatic
#230821 #551450 #871F7F #B92AAE #D64BCB

Accessibility & contrast

On white

8.29
#871F7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#871F7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871F7F
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871F7F#FFFFFF#000000##FFFFFF
##871F7F1.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#164582
Deuteranopia (green-blind)
#41537D
Tritanopia (blue-blind)
#8D2C4D
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #871f7f;
/* rgb */ color: rgb(135, 31, 127);
/* oklch */ color: oklch(44.8% 0.174 331.5);
Tailwind
colors: {
  custom: {
    50: '#ad67a4',
    500: '#871f7f',
    950: '#000000',
  },
}
SCSS
$custom: #871f7f;
$custom-light: #ad67a4;
$custom-dark: #000000;
JSON
{
  "hex": "#871f7f",
  "rgb": {
    "r": 135,
    "g": 31,
    "b": 127
  },
  "hsl": {
    "h": 304.615,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.44788,
    "c": 0.17448,
    "h": 331.5
  },
  "luminance": 0.07663
}

Semantic roles & 50–950 ramp

primary
#871F7F
secondary
#4AB852
accent
#E64F42
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #871F7F

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

Preview Lab → · Contrast checker → · Palette generator →

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