#871F95#871F95

#871F95 is a mid, vivid purple. Relative luminance 0.083; OKLCH L 46.2% C 0.192 H 322.6°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#871F95
RGBrgb(135, 31, 149)
HSLhsl(293, 66%, 35%)
HSVhsv(293, 79%, 58%)
CMYKcmyk(9.4%, 79.2%, 0%, 41.6%)
CIE-LABlab(34.60, 57.42, -41.72)
CIE-LCHlch(34.60, 70.97, 324.00°)
OKLaboklab(46.16% 0.1525 -0.1167)
OKLCHoklch(46.16% 0.192 322.6)
XYZxyz(15.9059, 8.3017, 29.1925)
Luminance0.0830 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871F95 #2D951F
analogous
#4C1F95 #871F95 #951F68
triadic
#871F95 #95871F #1F9587
tetradic
#871F95 #954C1F #2D951F #1F6895
square
#871F95 #954C1F #2D951F #1F6895
split-complementary
#871F95 #68951F #1F954C
monochromatic
#2B0A30 #591462 #871F95 #B52AC8 #CB53DB

Accessibility & contrast

On white

7.89
#871F95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#871F95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871F95
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871F95#FFFFFF#000000##FFFFFF
##871F951.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #871f95;
/* rgb */ color: rgb(135, 31, 149);
/* oklch */ color: oklch(46.2% 0.192 322.6);
Tailwind
colors: {
  custom: {
    50: '#ae68b5',
    500: '#871f95',
    950: '#000000',
  },
}
SCSS
$custom: #871f95;
$custom-light: #ae68b5;
$custom-dark: #000000;
JSON
{
  "hex": "#871f95",
  "rgb": {
    "r": 135,
    "g": 31,
    "b": 149
  },
  "hsl": {
    "h": 292.881,
    "s": 65.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.46162,
    "c": 0.19205,
    "h": 322.6
  },
  "luminance": 0.08301
}

Semantic roles & 50–950 ramp

primary
#871F95
secondary
#5EBF51
accent
#E93F53
background
#FBF6FB
surface
#F6EBF6
border
#D0C6D0
text
#110711
muted
#807A80

Preview Lab

Preview with #871F95

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

Preview Lab → · Contrast checker → · Palette generator →

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