#873BB2#873BB2
#873BB2 is a mid, vivid violet. Relative luminance 0.115; OKLCH L 50.9% C 0.186 H 310.8°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).
Color values
| HEX | #873BB2 |
|---|---|
| RGB | rgb(135, 59, 178) |
| HSL | hsl(278, 50%, 46%) |
| HSV | hsv(278, 67%, 70%) |
| CMYK | cmyk(24.2%, 66.9%, 0%, 30.2%) |
| CIE-LAB | lab(40.40, 52.25, -49.83) |
| CIE-LCH | lch(40.40, 72.20, 316.36°) |
| OKLab | oklab(50.9% 0.1216 -0.1407) |
| OKLCH | oklch(50.9% 0.186 310.8) |
| XYZ | xyz(19.5900, 11.4936, 43.2974) |
| Luminance | 0.1149 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purply
#983FB2
ΔE00 3.77
Darkorchid
#9932CC
ΔE00 4.48
Royal Purple
#7851A9
ΔE00 6.13
Purple (survey)
#7E1E9C
ΔE00 6.31
Darkviolet
#9400D3
ΔE00 6.41
Barney
#AC1DB8
ΔE00 6.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#873BB2 #66B23B
analogous
#4B3BB2 #873BB2 #B23BA2
triadic
#873BB2 #B2873B #3BB287
tetradic
#873BB2 #B24B3B #66B23B #3BA2B2
square
#873BB2 #B24B3B #66B23B #3BA2B2
split-complementary
#873BB2 #A2B23B #3BB24B
monochromatic
#411D56 #642C84 #873BB2 #A460CA #BE8EDA
Accessibility & contrast
On white
6.37
#873BB2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.30
#873BB2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #873BB2
6.37:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##873BB2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##873BB2 | 1.00 | 6.37 | 3.30 | 6.37 |
| #FFFFFF | 6.37 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.30 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.37 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005CB6
Deuteranopia (green-blind)
#2C61AF
Tritanopia (blue-blind)
#815371
Achromatopsia (no color)
#5F5F5F
Design tokens & code
CSS
--color: #873bb2; /* rgb */ color: rgb(135, 59, 178); /* oklch */ color: oklch(50.9% 0.186 310.8);
Tailwind
colors: {
custom: {
50: '#ae76ca',
500: '#873bb2',
950: '#000000',
},
}SCSS
$custom: #873bb2; $custom-light: #ae76ca; $custom-dark: #000000;
JSON
{
"hex": "#873bb2",
"rgb": {
"r": 135,
"g": 59,
"b": 178
},
"hsl": {
"h": 278.319,
"s": 50.211,
"l": 46.471
},
"oklch": {
"l": 0.50903,
"c": 0.18591,
"h": 310.8
},
"luminance": 0.11493
}Semantic roles & 50–950 ramp
primary
#873BB2
secondary
#9CC485
accent
#DA4E81
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82