#873FC1#873FC1
#873FC1 is a mid, vivid violet. Relative luminance 0.126; OKLCH L 52.4% C 0.196 H 306.1°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).
Color values
| HEX | #873FC1 |
|---|---|
| RGB | rgb(135, 63, 193) |
| HSL | hsl(273, 51%, 50%) |
| HSV | hsv(273, 67%, 76%) |
| CMYK | cmyk(30.1%, 67.4%, 0%, 24.3%) |
| CIE-LAB | lab(42.09, 53.77, -55.92) |
| CIE-LCH | lch(42.09, 77.57, 313.88°) |
| OKLab | oklab(52.43% 0.1157 -0.1586) |
| OKLCH | oklch(52.43% 0.196 306.1) |
| XYZ | xyz(21.3927, 12.5564, 51.7384) |
| Luminance | 0.1256 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 3.43
Purply
#983FB2
ΔE00 4.78
Blueviolet
#8A2BE2
ΔE00 5.00
Darkviolet
#9400D3
ΔE00 5.99
Royal Purple
#7851A9
ΔE00 6.18
Violet (survey)
#9A0EEA
ΔE00 6.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#873FC1 #79C13F
analogous
#463FC1 #873FC1 #C13FBA
triadic
#873FC1 #C1873F #3FC187
tetradic
#873FC1 #C1463F #79C13F #3FBAC1
square
#873FC1 #C1463F #79C13F #3FBAC1
split-complementary
#873FC1 #BAC13F #3FC146
monochromatic
#462165 #673093 #873FC1 #A46DD0 #C19CDF
Accessibility & contrast
On white
5.98
#873FC1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.51
#873FC1 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #873FC1
5.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##873FC1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##873FC1 | 1.00 | 5.98 | 3.51 | 5.98 |
| #FFFFFF | 5.98 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.51 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.98 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0061C5
Deuteranopia (green-blind)
#1A64BE
Tritanopia (blue-blind)
#7D5C7B
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #873fc1; /* rgb */ color: rgb(135, 63, 193); /* oklch */ color: oklch(52.4% 0.196 306.1);
Tailwind
colors: {
custom: {
50: '#ae79d4',
500: '#873fc1',
950: '#000000',
},
}SCSS
$custom: #873fc1; $custom-light: #ae79d4; $custom-dark: #000000;
JSON
{
"hex": "#873fc1",
"rgb": {
"r": 135,
"g": 63,
"b": 193
},
"hsl": {
"h": 273.231,
"s": 51.181,
"l": 50.196
},
"oklch": {
"l": 0.52434,
"c": 0.19628,
"h": 306.1
},
"luminance": 0.12556
}Semantic roles & 50–950 ramp
primary
#873FC1
secondary
#ABCB91
accent
#DB4D8C
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110914
muted
#807B83