#871F94#871F94

#871F94 is a mid, vivid purple. Relative luminance 0.083; OKLCH L 46.1% C 0.191 H 323.0°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#871F94
RGBrgb(135, 31, 148)
HSLhsl(293, 65%, 35%)
HSVhsv(293, 79%, 58%)
CMYKcmyk(8.8%, 79.1%, 0%, 42%)
CIE-LABlab(34.54, 57.24, -41.21)
CIE-LCHlch(34.54, 70.53, 324.25°)
OKLaboklab(46.1% 0.1526 -0.1152)
OKLCHoklch(46.1% 0.191 323)
XYZxyz(15.8264, 8.2699, 28.7739)
Luminance0.0827 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871F94 #2C941F
analogous
#4C1F94 #871F94 #941F67
triadic
#871F94 #94871F #1F9487
tetradic
#871F94 #944C1F #2C941F #1F6794
square
#871F94 #944C1F #2C941F #1F6794
split-complementary
#871F94 #67941F #1F944C
monochromatic
#2B0A2F #591461 #871F94 #B52AC7 #CC53DB

Accessibility & contrast

On white

7.91
#871F94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #871F94
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871F94#FFFFFF#000000##FFFFFF
##871F941.007.912.657.91
#FFFFFF7.911.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A97
Deuteranopia (green-blind)
#335591
Tritanopia (blue-blind)
#893659
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #871f94;
/* rgb */ color: rgb(135, 31, 148);
/* oklch */ color: oklch(46.1% 0.191 323.0);
Tailwind
colors: {
  custom: {
    50: '#ae68b4',
    500: '#871f94',
    950: '#000000',
  },
}
SCSS
$custom: #871f94;
$custom-light: #ae68b4;
$custom-dark: #000000;
JSON
{
  "hex": "#871f94",
  "rgb": {
    "r": 135,
    "g": 31,
    "b": 148
  },
  "hsl": {
    "h": 293.333,
    "s": 65.363,
    "l": 35.098
  },
  "oklch": {
    "l": 0.46096,
    "c": 0.19122,
    "h": 323
  },
  "luminance": 0.08269
}

Semantic roles & 50–950 ramp

primary
#871F94
secondary
#5DBE51
accent
#E83F52
background
#FBF6FB
surface
#F6EBF6
border
#D0C6D0
text
#110711
muted
#807A80

Preview Lab

Preview with #871F94

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

Preview Lab → · Contrast checker → · Palette generator →

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