#873AB7#873AB7
#873AB7 is a mid, vivid violet. Relative luminance 0.116; OKLCH L 51.1% C 0.192 H 309.4°. Best body text is #FFFFFF at 6.33:1 contrast (WCAG AA passes).
Color values
| HEX | #873AB7 |
|---|---|
| RGB | rgb(135, 58, 183) |
| HSL | hsl(277, 52%, 47%) |
| HSV | hsv(277, 68%, 72%) |
| CMYK | cmyk(26.2%, 68.3%, 0%, 28.2%) |
| CIE-LAB | lab(40.57, 53.82, -52.51) |
| CIE-LCH | lch(40.57, 75.19, 315.71°) |
| OKLab | oklab(51.13% 0.1222 -0.1485) |
| OKLCH | oklch(51.13% 0.192 309.4) |
| XYZ | xyz(20.0503, 11.5963, 45.9726) |
| Luminance | 0.1160 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 3.94
Purply
#983FB2
ΔE00 4.14
Darkviolet
#9400D3
ΔE00 5.80
Blueviolet
#8A2BE2
ΔE00 6.10
Royal Purple
#7851A9
ΔE00 6.40
Purple (survey)
#7E1E9C
ΔE00 6.61
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#873AB7 #6AB73A
analogous
#493AB7 #873AB7 #B73AA9
triadic
#873AB7 #B7873A #3AB787
tetradic
#873AB7 #B7493A #6AB73A #3AA9B7
square
#873AB7 #B7493A #6AB73A #3AA9B7
split-complementary
#873AB7 #A9B73A #3AB749
monochromatic
#421D5A #652B89 #873AB7 #A461CD #BF90DC
Accessibility & contrast
On white
6.33
#873AB7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.32
#873AB7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #873AB7
6.33:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##873AB7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##873AB7 | 1.00 | 6.33 | 3.32 | 6.33 |
| #FFFFFF | 6.33 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.32 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.33 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005CBB
Deuteranopia (green-blind)
#2461B4
Tritanopia (blue-blind)
#805574
Achromatopsia (no color)
#606060
Design tokens & code
CSS
--color: #873ab7; /* rgb */ color: rgb(135, 58, 183); /* oklch */ color: oklch(51.1% 0.192 309.4);
Tailwind
colors: {
custom: {
50: '#ae76cd',
500: '#873ab7',
950: '#000000',
},
}SCSS
$custom: #873ab7; $custom-light: #ae76cd; $custom-dark: #000000;
JSON
{
"hex": "#873ab7",
"rgb": {
"r": 135,
"g": 58,
"b": 183
},
"hsl": {
"h": 276.96,
"s": 51.867,
"l": 47.255
},
"oklch": {
"l": 0.51129,
"c": 0.19235,
"h": 309.4
},
"luminance": 0.11596
}Semantic roles & 50–950 ramp
primary
#873AB7
secondary
#9FC786
accent
#DB4C83
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110914
muted
#807B82