#873EB4#873EB4
#873EB4 is a mid, vivid violet. Relative luminance 0.119; OKLCH L 51.4% C 0.184 H 309.9°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).
Color values
| HEX | #873EB4 |
|---|---|
| RGB | rgb(135, 62, 180) |
| HSL | hsl(277, 49%, 47%) |
| HSV | hsv(277, 66%, 71%) |
| CMYK | cmyk(25%, 65.6%, 0%, 29.4%) |
| CIE-LAB | lab(41.04, 51.27, -49.98) |
| CIE-LCH | lch(41.04, 71.60, 315.73°) |
| OKLab | oklab(51.41% 0.118 -0.1411) |
| OKLCH | oklch(51.41% 0.184 309.9) |
| XYZ | xyz(19.9509, 11.8918, 44.4155) |
| Luminance | 0.1189 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purply
#983FB2
ΔE00 3.66
Darkorchid
#9932CC
ΔE00 4.33
Royal Purple
#7851A9
ΔE00 5.66
Darkviolet
#9400D3
ΔE00 6.66
Blueviolet
#8A2BE2
ΔE00 6.78
Barney
#AC1DB8
ΔE00 6.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#873EB4 #6BB43E
analogous
#4C3EB4 #873EB4 #B43EA6
triadic
#873EB4 #B4873E #3EB487
tetradic
#873EB4 #B44C3E #6BB43E #3EA6B4
square
#873EB4 #B44C3E #6BB43E #3EA6B4
split-complementary
#873EB4 #A6B43E #3EB44C
monochromatic
#431F59 #652E86 #873EB4 #A465CA #BF93DA
Accessibility & contrast
On white
6.22
#873EB4 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.38
#873EB4 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #873EB4
6.22:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##873EB4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##873EB4 | 1.00 | 6.22 | 3.38 | 6.22 |
| #FFFFFF | 6.22 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.38 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.22 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005EB8
Deuteranopia (green-blind)
#2D62B1
Tritanopia (blue-blind)
#815674
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #873eb4; /* rgb */ color: rgb(135, 62, 180); /* oklch */ color: oklch(51.4% 0.184 309.9);
Tailwind
colors: {
custom: {
50: '#ae78cb',
500: '#873eb4',
950: '#000000',
},
}SCSS
$custom: #873eb4; $custom-light: #ae78cb; $custom-dark: #000000;
JSON
{
"hex": "#873eb4",
"rgb": {
"r": 135,
"g": 62,
"b": 180
},
"hsl": {
"h": 277.119,
"s": 48.76,
"l": 47.451
},
"oklch": {
"l": 0.51408,
"c": 0.18391,
"h": 309.9
},
"luminance": 0.11891
}Semantic roles & 50–950 ramp
primary
#873EB4
secondary
#A0C589
accent
#D84F84
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110913
muted
#807B82