#871F7A#871F7A

#871F7A is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.5% C 0.171 H 333.8°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#871F7A
RGBrgb(135, 31, 122)
HSLhsl(308, 63%, 33%)
HSVhsv(308, 77%, 53%)
CMYKcmyk(0%, 77%, 9.6%, 47.1%)
CIE-LABlab(33.00, 52.82, -27.53)
CIE-LCHlch(33.00, 59.56, 332.47°)
OKLaboklab(44.5% 0.1531 -0.0755)
OKLCHoklch(44.5% 0.171 333.8)
XYZxyz(13.9946, 7.5372, 19.1264)
Luminance0.0754 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871F7A #1F872C
analogous
#601F87 #871F7A #871F46
triadic
#871F7A #7A871F #1F7A87
tetradic
#871F7A #87601F #1F872C #1F4687
square
#871F7A #87601F #1F872C #1F4687
split-complementary
#871F7A #46871F #1F8760
monochromatic
#230820 #55144D #871F7A #B92AA7 #D64BC4

Accessibility & contrast

On white

8.38
#871F7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#871F7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871F7A
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871F7A#FFFFFF#000000##FFFFFF
##871F7A1.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C447C
Deuteranopia (green-blind)
#435378
Tritanopia (blue-blind)
#8D294B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #871f7a;
/* rgb */ color: rgb(135, 31, 122);
/* oklch */ color: oklch(44.5% 0.171 333.8);
Tailwind
colors: {
  custom: {
    50: '#ad67a1',
    500: '#871f7a',
    950: '#000000',
  },
}
SCSS
$custom: #871f7a;
$custom-light: #ad67a1;
$custom-dark: #000000;
JSON
{
  "hex": "#871f7a",
  "rgb": {
    "r": 135,
    "g": 31,
    "b": 122
  },
  "hsl": {
    "h": 307.5,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.44503,
    "c": 0.1707,
    "h": 333.8
  },
  "luminance": 0.07536
}

Semantic roles & 50–950 ramp

primary
#871F7A
secondary
#4AB857
accent
#E65742
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070F
muted
#807A7E

Preview Lab

Preview with #871F7A

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

Preview Lab → · Contrast checker → · Palette generator →

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