#873AB2#873AB2
#873AB2 is a mid, vivid violet. Relative luminance 0.114; OKLCH L 50.8% C 0.187 H 310.9°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).
Color values
| HEX | #873AB2 |
|---|---|
| RGB | rgb(135, 58, 178) |
| HSL | hsl(279, 51%, 46%) |
| HSV | hsv(279, 67%, 70%) |
| CMYK | cmyk(24.2%, 67.4%, 0%, 30.2%) |
| CIE-LAB | lab(40.23, 52.71, -50.10) |
| CIE-LCH | lch(40.23, 72.72, 316.45°) |
| OKLab | oklab(50.78% 0.1227 -0.1414) |
| OKLCH | oklch(50.78% 0.187 310.9) |
| XYZ | xyz(19.5391, 11.3918, 43.2804) |
| Luminance | 0.1139 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purply
#983FB2
ΔE00 3.86
Darkorchid
#9932CC
ΔE00 4.47
Purple (survey)
#7E1E9C
ΔE00 6.14
Darkviolet
#9400D3
ΔE00 6.27
Royal Purple
#7851A9
ΔE00 6.30
Barney
#AC1DB8
ΔE00 6.65
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#873AB2 #65B23A
analogous
#4B3AB2 #873AB2 #B23AA1
triadic
#873AB2 #B2873A #3AB287
tetradic
#873AB2 #B24B3A #65B23A #3AA1B2
square
#873AB2 #B24B3A #65B23A #3AA1B2
split-complementary
#873AB2 #A1B23A #3AB24B
monochromatic
#411C56 #642B84 #873AB2 #A45FCB #BE8DDA
Accessibility & contrast
On white
6.41
#873AB2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.28
#873AB2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #873AB2
6.41:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##873AB2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##873AB2 | 1.00 | 6.41 | 3.28 | 6.41 |
| #FFFFFF | 6.41 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.28 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.41 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005BB6
Deuteranopia (green-blind)
#2B60AF
Tritanopia (blue-blind)
#815371
Achromatopsia (no color)
#5F5F5F
Design tokens & code
CSS
--color: #873ab2; /* rgb */ color: rgb(135, 58, 178); /* oklch */ color: oklch(50.8% 0.187 310.9);
Tailwind
colors: {
custom: {
50: '#ae76ca',
500: '#873ab2',
950: '#000000',
},
}SCSS
$custom: #873ab2; $custom-light: #ae76ca; $custom-dark: #000000;
JSON
{
"hex": "#873ab2",
"rgb": {
"r": 135,
"g": 58,
"b": 178
},
"hsl": {
"h": 278.5,
"s": 50.847,
"l": 46.275
},
"oklch": {
"l": 0.50783,
"c": 0.18724,
"h": 310.9
},
"luminance": 0.11391
}Semantic roles & 50–950 ramp
primary
#873AB2
secondary
#9BC483
accent
#DA4D80
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82