#871882#871882

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

Color values

HEX#871882
RGBrgb(135, 24, 130)
HSLhsl(303, 70%, 31%)
HSVhsv(303, 82%, 53%)
CMYKcmyk(0%, 82.2%, 3.7%, 47.1%)
CIE-LABlab(32.74, 56.15, -32.95)
CIE-LCHlch(32.74, 65.10, 329.59°)
OKLaboklab(44.46% 0.1592 -0.0911)
OKLCHoklch(44.46% 0.183 330.2)
XYZxyz(14.3475, 7.4170, 21.7907)
Luminance0.0742 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871882 #18871D
analogous
#541887 #871882 #87184A
triadic
#871882 #828718 #188287
tetradic
#871882 #875418 #18871D #184A87
square
#871882 #875418 #18871D #184A87
split-complementary
#871882 #4A8718 #188754
monochromatic
#1F061E #530F50 #871882 #BB21B4 #DC3DD5

Accessibility & contrast

On white

8.46
#871882 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #871882
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871882#FFFFFF#000000##FFFFFF
##8718821.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#034485
Deuteranopia (green-blind)
#3D527F
Tritanopia (blue-blind)
#8C294E
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #871882;
/* rgb */ color: rgb(135, 24, 130);
/* oklch */ color: oklch(44.5% 0.183 330.2);
Tailwind
colors: {
  custom: {
    50: '#ae65a7',
    500: '#871882',
    950: '#000000',
  },
}
SCSS
$custom: #871882;
$custom-light: #ae65a7;
$custom-dark: #000000;
JSON
{
  "hex": "#871882",
  "rgb": {
    "r": 135,
    "g": 24,
    "b": 130
  },
  "hsl": {
    "h": 302.703,
    "s": 69.811,
    "l": 31.176
  },
  "oklch": {
    "l": 0.44461,
    "c": 0.18346,
    "h": 330.2
  },
  "luminance": 0.07416
}

Semantic roles & 50–950 ramp

primary
#871882
secondary
#40BB46
accent
#ED433B
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11060F
muted
#807A7F

Preview Lab

Preview with #871882

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

Preview Lab → · Contrast checker → · Palette generator →

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