#873FB7#873FB7
#873FB7 is a mid, vivid violet. Relative luminance 0.121; OKLCH L 51.7% C 0.186 H 308.9°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).
Color values
| HEX | #873FB7 |
|---|---|
| RGB | rgb(135, 63, 183) |
| HSL | hsl(276, 49%, 48%) |
| HSV | hsv(276, 66%, 72%) |
| CMYK | cmyk(26.2%, 65.6%, 0%, 28.2%) |
| CIE-LAB | lab(41.41, 51.47, -51.15) |
| CIE-LCH | lch(41.41, 72.56, 315.18°) |
| OKLab | oklab(51.74% 0.1166 -0.1446) |
| OKLCH | oklch(51.74% 0.186 308.9) |
| XYZ | xyz(20.3147, 12.1252, 46.0608) |
| Luminance | 0.1212 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purply
#983FB2
ΔE00 3.83
Darkorchid
#9932CC
ΔE00 4.08
Royal Purple
#7851A9
ΔE00 5.59
Blueviolet
#8A2BE2
ΔE00 6.40
Darkviolet
#9400D3
ΔE00 6.57
Barney
#AC1DB8
ΔE00 7.09
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#873FB7 #6FB73F
analogous
#4B3FB7 #873FB7 #B73FAB
triadic
#873FB7 #B7873F #3FB787
tetradic
#873FB7 #B74B3F #6FB73F #3FABB7
square
#873FB7 #B74B3F #6FB73F #3FABB7
split-complementary
#873FB7 #ABB73F #3FB74B
monochromatic
#44205C #652F89 #873FB7 #A368CB #BF96DB
Accessibility & contrast
On white
6.13
#873FB7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.43
#873FB7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #873FB7
6.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##873FB7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##873FB7 | 1.00 | 6.13 | 3.43 | 6.13 |
| #FFFFFF | 6.13 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.43 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.13 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005FBB
Deuteranopia (green-blind)
#2B63B4
Tritanopia (blue-blind)
#805875
Achromatopsia (no color)
#626262
Design tokens & code
CSS
--color: #873fb7; /* rgb */ color: rgb(135, 63, 183); /* oklch */ color: oklch(51.7% 0.186 308.9);
Tailwind
colors: {
custom: {
50: '#ae79cd',
500: '#873fb7',
950: '#000000',
},
}SCSS
$custom: #873fb7; $custom-light: #ae79cd; $custom-dark: #000000;
JSON
{
"hex": "#873fb7",
"rgb": {
"r": 135,
"g": 63,
"b": 183
},
"hsl": {
"h": 276,
"s": 48.78,
"l": 48.235
},
"oklch": {
"l": 0.51737,
"c": 0.1857,
"h": 308.9
},
"luminance": 0.12125
}Semantic roles & 50–950 ramp
primary
#873FB7
secondary
#A3C68B
accent
#D84F86
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110913
muted
#807B82