#871F93#871F93

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

Color values

HEX#871F93
RGBrgb(135, 31, 147)
HSLhsl(294, 65%, 35%)
HSVhsv(294, 79%, 58%)
CMYKcmyk(8.2%, 78.9%, 0%, 42.4%)
CIE-LABlab(34.47, 57.06, -40.70)
CIE-LCHlch(34.47, 70.08, 324.50°)
OKLaboklab(46.03% 0.1527 -0.1137)
OKLCHoklch(46.03% 0.19 323.3)
XYZxyz(15.7476, 8.2384, 28.3588)
Luminance0.0824 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871F93 #2B931F
analogous
#4D1F93 #871F93 #931F65
triadic
#871F93 #93871F #1F9387
tetradic
#871F93 #934D1F #2B931F #1F6593
square
#871F93 #934D1F #2B931F #1F6593
split-complementary
#871F93 #65931F #1F934D
monochromatic
#2A0A2E #591460 #871F93 #B52AC6 #CC52DA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##871F93#FFFFFF#000000##FFFFFF
##871F931.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)
#004996
Deuteranopia (green-blind)
#345590
Tritanopia (blue-blind)
#893659
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #871f93;
/* rgb */ color: rgb(135, 31, 147);
/* oklch */ color: oklch(46.0% 0.190 323.3);
Tailwind
colors: {
  custom: {
    50: '#ae68b3',
    500: '#871f93',
    950: '#000000',
  },
}
SCSS
$custom: #871f93;
$custom-light: #ae68b3;
$custom-dark: #000000;
JSON
{
  "hex": "#871f93",
  "rgb": {
    "r": 135,
    "g": 31,
    "b": 147
  },
  "hsl": {
    "h": 293.793,
    "s": 65.169,
    "l": 34.902
  },
  "oklch": {
    "l": 0.4603,
    "c": 0.1904,
    "h": 323.3
  },
  "luminance": 0.08237
}

Semantic roles & 50–950 ramp

primary
#871F93
secondary
#5BBE50
accent
#E84051
background
#FBF6FB
surface
#F6EBF6
border
#D0C6D0
text
#110711
muted
#807A80

Preview Lab

Preview with #871F93

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

Preview Lab → · Contrast checker → · Palette generator →

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