#871F7A#871F7A
#871F7A is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.5% C 0.171 H 333.8°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).
Color values
| HEX | #871F7A |
|---|---|
| RGB | rgb(135, 31, 122) |
| HSL | hsl(308, 63%, 33%) |
| HSV | hsv(308, 77%, 53%) |
| CMYK | cmyk(0%, 77%, 9.6%, 47.1%) |
| CIE-LAB | lab(33.00, 52.82, -27.53) |
| CIE-LCH | lch(33.00, 59.56, 332.47°) |
| OKLab | oklab(44.5% 0.1531 -0.0755) |
| OKLCH | oklch(44.5% 0.171 333.8) |
| XYZ | xyz(13.9946, 7.5372, 19.1264) |
| Luminance | 0.0754 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Darkish Purple
#751973
ΔE00 3.87
Darkmagenta
#8B008B
ΔE00 4.14
Purple
#800080
ΔE00 4.15
Warm Purple
#952E8F
ΔE00 4.80
Barney Purple
#A00498
ΔE00 5.95
Red Violet
#9E0168
ΔE00 7.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#871F7A #1F872C
analogous
#601F87 #871F7A #871F46
triadic
#871F7A #7A871F #1F7A87
tetradic
#871F7A #87601F #1F872C #1F4687
square
#871F7A #87601F #1F872C #1F4687
split-complementary
#871F7A #46871F #1F8760
monochromatic
#230820 #55144D #871F7A #B92AA7 #D64BC4
Accessibility & contrast
On white
8.38
#871F7A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.51
#871F7A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #871F7A
8.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##871F7A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##871F7A | 1.00 | 8.38 | 2.51 | 8.38 |
| #FFFFFF | 8.38 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.51 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.38 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1C447C
Deuteranopia (green-blind)
#435378
Tritanopia (blue-blind)
#8D294B
Achromatopsia (no color)
#4E4E4E
Design tokens & code
CSS
--color: #871f7a; /* rgb */ color: rgb(135, 31, 122); /* oklch */ color: oklch(44.5% 0.171 333.8);
Tailwind
colors: {
custom: {
50: '#ad67a1',
500: '#871f7a',
950: '#000000',
},
}SCSS
$custom: #871f7a; $custom-light: #ad67a1; $custom-dark: #000000;
JSON
{
"hex": "#871f7a",
"rgb": {
"r": 135,
"g": 31,
"b": 122
},
"hsl": {
"h": 307.5,
"s": 62.651,
"l": 32.549
},
"oklch": {
"l": 0.44503,
"c": 0.1707,
"h": 333.8
},
"luminance": 0.07536
}Semantic roles & 50–950 ramp
primary
#871F7A
secondary
#4AB857
accent
#E65742
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070F
muted
#807A7E