#871790#871790

#871790 is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.3% C 0.195 H 324.7°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#871790
RGBrgb(135, 23, 144)
HSLhsl(296, 72%, 33%)
HSVhsv(296, 84%, 56%)
CMYKcmyk(6.2%, 84%, 0%, 43.5%)
CIE-LABlab(33.52, 58.74, -40.39)
CIE-LCHlch(33.52, 71.29, 325.49°)
OKLaboklab(45.29% 0.1591 -0.1128)
OKLCHoklch(45.29% 0.195 324.7)
XYZxyz(15.3317, 7.7783, 27.0740)
Luminance0.0778 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871790 #209017
analogous
#4A1790 #871790 #90175D
triadic
#871790 #908717 #179087
tetradic
#871790 #904A17 #209017 #175D90
square
#871790 #904A17 #209017 #175D90
split-complementary
#871790 #5D9017 #17904A
monochromatic
#240626 #560F5B #871790 #B81FC5 #D541E1

Accessibility & contrast

On white

8.22
#871790 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#871790 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871790
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871790#FFFFFF#000000##FFFFFF
##8717901.008.222.568.22
#FFFFFF8.221.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004793
Deuteranopia (green-blind)
#33538D
Tritanopia (blue-blind)
#8A3155
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #871790;
/* rgb */ color: rgb(135, 23, 144);
/* oklch */ color: oklch(45.3% 0.195 324.7);
Tailwind
colors: {
  custom: {
    50: '#ae65b1',
    500: '#871790',
    950: '#000000',
  },
}
SCSS
$custom: #871790;
$custom-light: #ae65b1;
$custom-dark: #000000;
JSON
{
  "hex": "#871790",
  "rgb": {
    "r": 135,
    "g": 23,
    "b": 144
  },
  "hsl": {
    "h": 295.537,
    "s": 72.455,
    "l": 32.745
  },
  "oklch": {
    "l": 0.45291,
    "c": 0.19499,
    "h": 324.7
  },
  "luminance": 0.07777
}

Semantic roles & 50–950 ramp

primary
#871790
secondary
#4BC142
accent
#EF3946
background
#FBF6FB
surface
#F6EBF6
border
#D0C6D0
text
#110611
muted
#807A80

Preview Lab

Preview with #871790

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

Preview Lab → · Contrast checker → · Palette generator →

#871790 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva