#871F7C#871F7C

#871F7C is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.6% C 0.172 H 332.8°. Best body text is #FFFFFF at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#871F7C
RGBrgb(135, 31, 124)
HSLhsl(306, 63%, 33%)
HSVhsv(306, 77%, 53%)
CMYKcmyk(0%, 77%, 8.1%, 47.1%)
CIE-LABlab(33.11, 53.14, -28.61)
CIE-LCHlch(33.11, 60.35, 331.70°)
OKLaboklab(44.62% 0.1532 -0.0786)
OKLCHoklch(44.62% 0.172 332.8)
XYZxyz(14.1198, 7.5873, 19.7857)
Luminance0.0759 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871F7C #1F872A
analogous
#5E1F87 #871F7C #871F48
triadic
#871F7C #7C871F #1F7C87
tetradic
#871F7C #875E1F #1F872A #1F4887
square
#871F7C #875E1F #1F872A #1F4887
split-complementary
#871F7C #48871F #1F875E
monochromatic
#230821 #55144E #871F7C #B92AAA #D64BC7

Accessibility & contrast

On white

8.34
#871F7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#871F7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871F7C
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871F7C#FFFFFF#000000##FFFFFF
##871F7C1.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A447F
Deuteranopia (green-blind)
#42537A
Tritanopia (blue-blind)
#8D2A4C
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #871f7c;
/* rgb */ color: rgb(135, 31, 124);
/* oklch */ color: oklch(44.6% 0.172 332.8);
Tailwind
colors: {
  custom: {
    50: '#ad67a2',
    500: '#871f7c',
    950: '#000000',
  },
}
SCSS
$custom: #871f7c;
$custom-light: #ad67a2;
$custom-dark: #000000;
JSON
{
  "hex": "#871f7c",
  "rgb": {
    "r": 135,
    "g": 31,
    "b": 124
  },
  "hsl": {
    "h": 306.346,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.44616,
    "c": 0.17219,
    "h": 332.8
  },
  "luminance": 0.07586
}

Semantic roles & 50–950 ramp

primary
#871F7C
secondary
#4AB855
accent
#E65342
background
#FBF6FA
surface
#F6EBF3
border
#D0C6CD
text
#11070F
muted
#807A7F

Preview Lab

Preview with #871F7C

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

Preview Lab → · Contrast checker → · Palette generator →

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