#873AB1#873AB1
#873AB1 is a mid, vivid violet. Relative luminance 0.114; OKLCH L 50.7% C 0.186 H 311.2°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).
Color values
| HEX | #873AB1 |
|---|---|
| RGB | rgb(135, 58, 177) |
| HSL | hsl(279, 51%, 46%) |
| HSV | hsv(279, 67%, 69%) |
| CMYK | cmyk(23.7%, 67.2%, 0%, 30.6%) |
| CIE-LAB | lab(40.17, 52.49, -49.61) |
| CIE-LCH | lch(40.17, 72.23, 316.61°) |
| OKLab | oklab(50.71% 0.1228 -0.14) |
| OKLCH | oklch(50.71% 0.186 311.2) |
| XYZ | xyz(19.4391, 11.3518, 42.7535) |
| Luminance | 0.1135 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purply
#983FB2
ΔE00 3.82
Darkorchid
#9932CC
ΔE00 4.59
Purple (survey)
#7E1E9C
ΔE00 6.06
Royal Purple
#7851A9
ΔE00 6.29
Darkviolet
#9400D3
ΔE00 6.38
Barney
#AC1DB8
ΔE00 6.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#873AB1 #64B13A
analogous
#4C3AB1 #873AB1 #B13A9F
triadic
#873AB1 #B1873A #3AB187
tetradic
#873AB1 #B14C3A #64B13A #3A9FB1
square
#873AB1 #B14C3A #64B13A #3A9FB1
split-complementary
#873AB1 #9FB13A #3AB14C
monochromatic
#411C55 #642B83 #873AB1 #A45ECA #BE8CD9
Accessibility & contrast
On white
6.42
#873AB1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.27
#873AB1 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #873AB1
6.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##873AB1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##873AB1 | 1.00 | 6.42 | 3.27 | 6.42 |
| #FFFFFF | 6.42 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.27 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.42 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005BB5
Deuteranopia (green-blind)
#2C60AE
Tritanopia (blue-blind)
#825271
Achromatopsia (no color)
#5F5F5F
Design tokens & code
CSS
--color: #873ab1; /* rgb */ color: rgb(135, 58, 177); /* oklch */ color: oklch(50.7% 0.186 311.2);
Tailwind
colors: {
custom: {
50: '#ae76c9',
500: '#873ab1',
950: '#000000',
},
}SCSS
$custom: #873ab1; $custom-light: #ae76c9; $custom-dark: #000000;
JSON
{
"hex": "#873ab1",
"rgb": {
"r": 135,
"g": 58,
"b": 177
},
"hsl": {
"h": 278.824,
"s": 50.638,
"l": 46.078
},
"oklch": {
"l": 0.50714,
"c": 0.18622,
"h": 311.2
},
"luminance": 0.11351
}Semantic roles & 50–950 ramp
primary
#873AB1
secondary
#9AC483
accent
#DA4E7F
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82