#871F90#871F90

#871F90 is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.8% C 0.188 H 324.5°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#871F90
RGBrgb(135, 31, 144)
HSLhsl(295, 65%, 34%)
HSVhsv(295, 78%, 56%)
CMYKcmyk(6.2%, 78.5%, 0%, 43.5%)
CIE-LABlab(34.28, 56.52, -39.16)
CIE-LCHlch(34.28, 68.76, 325.28°)
OKLaboklab(45.83% 0.153 -0.1092)
OKLCHoklch(45.83% 0.188 324.5)
XYZxyz(15.5153, 8.1455, 27.1352)
Luminance0.0814 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871F90 #28901F
analogous
#4F1F90 #871F90 #901F61
triadic
#871F90 #90871F #1F9087
tetradic
#871F90 #904F1F #28901F #1F6190
square
#871F90 #904F1F #28901F #1F6190
split-complementary
#871F90 #61901F #1F904F
monochromatic
#29092B #58145E #871F90 #B62AC2 #CE50D9

Accessibility & contrast

On white

7.99
#871F90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#871F90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871F90
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871F90#FFFFFF#000000##FFFFFF
##871F901.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004993
Deuteranopia (green-blind)
#36558D
Tritanopia (blue-blind)
#8A3457
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #871f90;
/* rgb */ color: rgb(135, 31, 144);
/* oklch */ color: oklch(45.8% 0.188 324.5);
Tailwind
colors: {
  custom: {
    50: '#ae68b1',
    500: '#871f90',
    950: '#000000',
  },
}
SCSS
$custom: #871f90;
$custom-light: #ae68b1;
$custom-dark: #000000;
JSON
{
  "hex": "#871f90",
  "rgb": {
    "r": 135,
    "g": 31,
    "b": 144
  },
  "hsl": {
    "h": 295.221,
    "s": 64.571,
    "l": 34.314
  },
  "oklch": {
    "l": 0.45834,
    "c": 0.18795,
    "h": 324.5
  },
  "luminance": 0.08144
}

Semantic roles & 50–950 ramp

primary
#871F90
secondary
#57BC4E
accent
#E8404E
background
#FBF6FA
surface
#F6EBF5
border
#D0C6CF
text
#110711
muted
#807A80

Preview Lab

Preview with #871F90

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

Preview Lab → · Contrast checker → · Palette generator →

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