#871AB3#871AB3

#871AB3 is a mid, highly saturated purple. Relative luminance 0.091; OKLCH L 48.0% C 0.221 H 312.9°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#871AB3
RGBrgb(135, 26, 179)
HSLhsl(283, 75%, 40%)
HSVhsv(283, 85%, 70%)
CMYKcmyk(24.6%, 85.5%, 0%, 29.8%)
CIE-LABlab(36.26, 64.48, -57.12)
CIE-LCHlch(36.26, 86.14, 318.47°)
OKLaboklab(48% 0.1506 -0.1618)
OKLCHoklch(48% 0.221 312.9)
XYZxyz(18.4963, 9.1449, 43.4299)
Luminance0.0914 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871AB3 #46B31A
analogous
#3A1AB3 #871AB3 #B31A92
triadic
#871AB3 #B3871A #1AB387
tetradic
#871AB3 #B33A1A #46B31A #1A92B3
square
#871AB3 #B33A1A #46B31A #1A92B3
split-complementary
#871AB3 #92B31A #1AB33A
monochromatic
#360A48 #5F127E #871AB3 #AC2AE0 #C160E8

Accessibility & contrast

On white

7.42
#871AB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#871AB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871AB3
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871AB3#FFFFFF#000000##FFFFFF
##871AB31.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B7
Deuteranopia (green-blind)
#0057B0
Tritanopia (blue-blind)
#82446A
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #871ab3;
/* rgb */ color: rgb(135, 26, 179);
/* oklch */ color: oklch(48.0% 0.221 312.9);
Tailwind
colors: {
  custom: {
    50: '#af68cb',
    500: '#871ab3',
    950: '#000000',
  },
}
SCSS
$custom: #871ab3;
$custom-light: #af68cb;
$custom-dark: #000000;
JSON
{
  "hex": "#871ab3",
  "rgb": {
    "r": 135,
    "g": 26,
    "b": 179
  },
  "hsl": {
    "h": 282.745,
    "s": 74.634,
    "l": 40.196
  },
  "oklch": {
    "l": 0.47999,
    "c": 0.22109,
    "h": 312.9
  },
  "luminance": 0.09144
}

Semantic roles & 50–950 ramp

primary
#871AB3
secondary
#7DCC5D
accent
#F1376C
background
#FBF6FC
surface
#F6EBF9
border
#D0C6D2
text
#110713
muted
#807A82

Preview Lab

Preview with #871AB3

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

Preview Lab → · Contrast checker → · Palette generator →

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