#871AB4#871AB4

#871AB4 is a mid, highly saturated purple. Relative luminance 0.092; OKLCH L 48.1% C 0.222 H 312.6°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#871AB4
RGBrgb(135, 26, 180)
HSLhsl(282, 75%, 40%)
HSVhsv(282, 86%, 71%)
CMYKcmyk(25%, 85.6%, 0%, 29.4%)
CIE-LABlab(36.34, 64.68, -57.58)
CIE-LCHlch(36.34, 86.60, 318.32°)
OKLaboklab(48.08% 0.1504 -0.1632)
OKLCHoklch(48.08% 0.222 312.6)
XYZxyz(18.5978, 9.1855, 43.9645)
Luminance0.0919 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871AB4 #47B41A
analogous
#3A1AB4 #871AB4 #B41A94
triadic
#871AB4 #B4871A #1AB487
tetradic
#871AB4 #B43A1A #47B41A #1A94B4
square
#871AB4 #B43A1A #47B41A #1A94B4
split-complementary
#871AB4 #94B41A #1AB43A
monochromatic
#370B49 #5F127F #871AB4 #AB2BE0 #C060E8

Accessibility & contrast

On white

7.40
#871AB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#871AB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871AB4
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871AB4#FFFFFF#000000##FFFFFF
##871AB41.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B8
Deuteranopia (green-blind)
#0058B1
Tritanopia (blue-blind)
#82446B
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #871ab4;
/* rgb */ color: rgb(135, 26, 180);
/* oklch */ color: oklch(48.1% 0.222 312.6);
Tailwind
colors: {
  custom: {
    50: '#af68cb',
    500: '#871ab4',
    950: '#000000',
  },
}
SCSS
$custom: #871ab4;
$custom-light: #af68cb;
$custom-dark: #000000;
JSON
{
  "hex": "#871ab4",
  "rgb": {
    "r": 135,
    "g": 26,
    "b": 180
  },
  "hsl": {
    "h": 282.468,
    "s": 74.757,
    "l": 40.392
  },
  "oklch": {
    "l": 0.48077,
    "c": 0.22193,
    "h": 312.6
  },
  "luminance": 0.09185
}

Semantic roles & 50–950 ramp

primary
#871AB4
secondary
#7ECC5D
accent
#F1366D
background
#FBF6FC
surface
#F6ECF9
border
#D0C7D2
text
#110713
muted
#807A82

Preview Lab

Preview with #871AB4

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

Preview Lab → · Contrast checker → · Palette generator →

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