#871F7E#871F7E

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

Color values

HEX#871F7E
RGBrgb(135, 31, 126)
HSLhsl(305, 63%, 33%)
HSVhsv(305, 77%, 53%)
CMYKcmyk(0%, 77%, 6.7%, 47.1%)
CIE-LABlab(33.22, 53.46, -29.69)
CIE-LCHlch(33.22, 61.15, 330.95°)
OKLaboklab(44.73% 0.1533 -0.0817)
OKLCHoklch(44.73% 0.174 331.9)
XYZxyz(14.2476, 7.6384, 20.4586)
Luminance0.0764 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871F7E #1F8728
analogous
#5C1F87 #871F7E #871F4A
triadic
#871F7E #7E871F #1F7E87
tetradic
#871F7E #875C1F #1F8728 #1F4A87
square
#871F7E #875C1F #1F8728 #1F4A87
split-complementary
#871F7E #4A871F #1F875C
monochromatic
#230821 #551450 #871F7E #B92AAC #D64BCA

Accessibility & contrast

On white

8.31
#871F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #871F7E
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871F7E#FFFFFF#000000##FFFFFF
##871F7E1.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#174581
Deuteranopia (green-blind)
#41537C
Tritanopia (blue-blind)
#8D2B4D
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #871f7e;
/* rgb */ color: rgb(135, 31, 126);
/* oklch */ color: oklch(44.7% 0.174 331.9);
Tailwind
colors: {
  custom: {
    50: '#ad67a4',
    500: '#871f7e',
    950: '#000000',
  },
}
SCSS
$custom: #871f7e;
$custom-light: #ad67a4;
$custom-dark: #000000;
JSON
{
  "hex": "#871f7e",
  "rgb": {
    "r": 135,
    "g": 31,
    "b": 126
  },
  "hsl": {
    "h": 305.192,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.4473,
    "c": 0.17372,
    "h": 331.9
  },
  "luminance": 0.07637
}

Semantic roles & 50–950 ramp

primary
#871F7E
secondary
#4AB853
accent
#E65042
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #871F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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