#871F7D#871F7D

#871F7D is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.7% C 0.173 H 332.4°. Best body text is #FFFFFF at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#871F7D
RGBrgb(135, 31, 125)
HSLhsl(306, 63%, 33%)
HSVhsv(306, 77%, 53%)
CMYKcmyk(0%, 77%, 7.4%, 47.1%)
CIE-LABlab(33.16, 53.30, -29.15)
CIE-LCHlch(33.16, 60.75, 331.32°)
OKLaboklab(44.67% 0.1533 -0.0801)
OKLCHoklch(44.67% 0.173 332.4)
XYZxyz(14.1834, 7.6127, 20.1205)
Luminance0.0761 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871F7D #1F8729
analogous
#5D1F87 #871F7D #871F49
triadic
#871F7D #7D871F #1F7D87
tetradic
#871F7D #875D1F #1F8729 #1F4987
square
#871F7D #875D1F #1F8729 #1F4987
split-complementary
#871F7D #49871F #1F875D
monochromatic
#230821 #55144F #871F7D #B92AAB #D64BC8

Accessibility & contrast

On white

8.33
#871F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #871F7D
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871F7D#FFFFFF#000000##FFFFFF
##871F7D1.008.332.528.33
#FFFFFF8.331.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184580
Deuteranopia (green-blind)
#42537B
Tritanopia (blue-blind)
#8D2B4C
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #871f7d;
/* rgb */ color: rgb(135, 31, 125);
/* oklch */ color: oklch(44.7% 0.173 332.4);
Tailwind
colors: {
  custom: {
    50: '#ad67a3',
    500: '#871f7d',
    950: '#000000',
  },
}
SCSS
$custom: #871f7d;
$custom-light: #ad67a3;
$custom-dark: #000000;
JSON
{
  "hex": "#871f7d",
  "rgb": {
    "r": 135,
    "g": 31,
    "b": 125
  },
  "hsl": {
    "h": 305.769,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.44673,
    "c": 0.17295,
    "h": 332.4
  },
  "luminance": 0.07612
}

Semantic roles & 50–950 ramp

primary
#871F7D
secondary
#4AB854
accent
#E65242
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #871F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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