#871881#871881

#871881 is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.4% C 0.183 H 330.6°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#871881
RGBrgb(135, 24, 129)
HSLhsl(303, 70%, 31%)
HSVhsv(303, 82%, 53%)
CMYKcmyk(0%, 82.2%, 4.4%, 47.1%)
CIE-LABlab(32.68, 55.99, -32.42)
CIE-LCHlch(32.68, 64.70, 329.92°)
OKLaboklab(44.4% 0.1593 -0.0896)
OKLCHoklch(44.4% 0.183 330.6)
XYZxyz(14.2807, 7.3903, 21.4390)
Luminance0.0739 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871881 #18871E
analogous
#551887 #871881 #871849
triadic
#871881 #818718 #188187
tetradic
#871881 #875518 #18871E #184987
square
#871881 #875518 #18871E #184987
split-complementary
#871881 #498718 #188755
monochromatic
#1F061E #530F4F #871881 #BB21B3 #DC3DD4

Accessibility & contrast

On white

8.48
#871881 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#871881 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871881
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871881#FFFFFF#000000##FFFFFF
##8718811.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#054384
Deuteranopia (green-blind)
#3D527E
Tritanopia (blue-blind)
#8C294D
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #871881;
/* rgb */ color: rgb(135, 24, 129);
/* oklch */ color: oklch(44.4% 0.183 330.6);
Tailwind
colors: {
  custom: {
    50: '#ae65a6',
    500: '#871881',
    950: '#000000',
  },
}
SCSS
$custom: #871881;
$custom-light: #ae65a6;
$custom-dark: #000000;
JSON
{
  "hex": "#871881",
  "rgb": {
    "r": 135,
    "g": 24,
    "b": 129
  },
  "hsl": {
    "h": 303.243,
    "s": 69.811,
    "l": 31.176
  },
  "oklch": {
    "l": 0.44401,
    "c": 0.18271,
    "h": 330.6
  },
  "luminance": 0.07389
}

Semantic roles & 50–950 ramp

primary
#871881
secondary
#40BB47
accent
#ED453B
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11060F
muted
#807A7F

Preview Lab

Preview with #871881

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

Preview Lab → · Contrast checker → · Palette generator →

#871881 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva