#871478#871478

#871478 is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.6% C 0.179 H 334.6°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#871478
RGBrgb(135, 20, 120)
HSLhsl(308, 74%, 30%)
HSVhsv(308, 85%, 53%)
CMYKcmyk(0%, 85.2%, 11.1%, 47.1%)
CIE-LABlab(31.83, 55.58, -28.11)
CIE-LCHlch(31.83, 62.28, 333.17°)
OKLaboklab(43.63% 0.1621 -0.0771)
OKLCHoklch(43.63% 0.179 334.6)
XYZxyz(13.6322, 7.0085, 18.4005)
Luminance0.0701 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871478 #148723
analogous
#5C1487 #871478 #87143E
triadic
#871478 #788714 #147887
tetradic
#871478 #875C14 #148723 #143E87
square
#871478 #875C14 #148723 #143E87
split-complementary
#871478 #3E8714 #14875C
monochromatic
#1C0419 #520C49 #871478 #BC1CA7 #E134CA

Accessibility & contrast

On white

8.74
#871478 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#871478 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871478
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871478#FFFFFF#000000##FFFFFF
##8714781.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11407A
Deuteranopia (green-blind)
#415175
Tritanopia (blue-blind)
#8E2147
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #871478;
/* rgb */ color: rgb(135, 20, 120);
/* oklch */ color: oklch(43.6% 0.179 334.6);
Tailwind
colors: {
  custom: {
    50: '#ae639f',
    500: '#871478',
    950: '#000000',
  },
}
SCSS
$custom: #871478;
$custom-light: #ae639f;
$custom-dark: #000000;
JSON
{
  "hex": "#871478",
  "rgb": {
    "r": 135,
    "g": 20,
    "b": 120
  },
  "hsl": {
    "h": 307.826,
    "s": 74.194,
    "l": 30.392
  },
  "oklch": {
    "l": 0.43627,
    "c": 0.17946,
    "h": 334.6
  },
  "luminance": 0.07007
}

Semantic roles & 50–950 ramp

primary
#871478
secondary
#3BBB4C
accent
#F14F37
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11060E
muted
#807A7E

Preview Lab

Preview with #871478

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

Preview Lab → · Contrast checker → · Palette generator →

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