#871E95#871E95

#871E95 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 46.1% C 0.193 H 322.6°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#871E95
RGBrgb(135, 30, 149)
HSLhsl(293, 66%, 35%)
HSVhsv(293, 80%, 58%)
CMYKcmyk(9.4%, 79.9%, 0%, 41.6%)
CIE-LABlab(34.50, 57.72, -41.88)
CIE-LCHlch(34.50, 71.31, 324.03°)
OKLaboklab(46.09% 0.1533 -0.1172)
OKLCHoklch(46.09% 0.193 322.6)
XYZxyz(15.8802, 8.2503, 29.1840)
Luminance0.0825 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871E95 #2C951E
analogous
#4B1E95 #871E95 #951E68
triadic
#871E95 #95871E #1E9587
tetradic
#871E95 #954B1E #2C951E #1E6895
square
#871E95 #954B1E #2C951E #1E6895
split-complementary
#871E95 #68951E #1E954B
monochromatic
#2B092F #591462 #871E95 #B528C8 #CC51DC

Accessibility & contrast

On white

7.93
#871E95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#871E95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871E95
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871E95#FFFFFF#000000##FFFFFF
##871E951.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A98
Deuteranopia (green-blind)
#325592
Tritanopia (blue-blind)
#89365A
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #871e95;
/* rgb */ color: rgb(135, 30, 149);
/* oklch */ color: oklch(46.1% 0.193 322.6);
Tailwind
colors: {
  custom: {
    50: '#ae68b5',
    500: '#871e95',
    950: '#000000',
  },
}
SCSS
$custom: #871e95;
$custom-light: #ae68b5;
$custom-dark: #000000;
JSON
{
  "hex": "#871e95",
  "rgb": {
    "r": 135,
    "g": 30,
    "b": 149
  },
  "hsl": {
    "h": 292.941,
    "s": 66.48,
    "l": 35.098
  },
  "oklch": {
    "l": 0.46088,
    "c": 0.193,
    "h": 322.6
  },
  "luminance": 0.08249
}

Semantic roles & 50–950 ramp

primary
#871E95
secondary
#5DBF50
accent
#E93E53
background
#FBF6FB
surface
#F6EBF6
border
#D0C6D0
text
#110711
muted
#807A80

Preview Lab

Preview with #871E95

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

Preview Lab → · Contrast checker → · Palette generator →

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