#873FC3#873FC3
#873FC3 is a mid, vivid violet. Relative luminance 0.126; OKLCH L 52.6% C 0.198 H 305.6°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).
Color values
| HEX | #873FC3 |
|---|---|
| RGB | rgb(135, 63, 195) |
| HSL | hsl(273, 52%, 51%) |
| HSV | hsv(273, 68%, 76%) |
| CMYK | cmyk(30.8%, 67.7%, 0%, 23.5%) |
| CIE-LAB | lab(42.23, 54.23, -56.86) |
| CIE-LCH | lch(42.23, 78.58, 313.65°) |
| OKLab | oklab(52.58% 0.1155 -0.1613) |
| OKLCH | oklch(52.58% 0.198 305.6) |
| XYZ | xyz(21.6173, 12.6462, 52.9213) |
| Luminance | 0.1265 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 3.37
Blueviolet
#8A2BE2
ΔE00 4.75
Purply
#983FB2
ΔE00 5.00
Darkviolet
#9400D3
ΔE00 5.92
Royal Purple
#7851A9
ΔE00 6.34
Violet (survey)
#9A0EEA
ΔE00 6.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#873FC3 #7BC33F
analogous
#453FC3 #873FC3 #C33FBD
triadic
#873FC3 #C3873F #3FC387
tetradic
#873FC3 #C3453F #7BC33F #3FBDC3
square
#873FC3 #C3453F #7BC33F #3FBDC3
split-complementary
#873FC3 #BDC33F #3FC345
monochromatic
#472067 #672F96 #873FC3 #A46ED2 #C19CE0
Accessibility & contrast
On white
5.95
#873FC3 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.53
#873FC3 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #873FC3
5.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##873FC3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##873FC3 | 1.00 | 5.95 | 3.53 | 5.95 |
| #FFFFFF | 5.95 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.53 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.95 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0062C7
Deuteranopia (green-blind)
#1564C0
Tritanopia (blue-blind)
#7C5C7C
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #873fc3; /* rgb */ color: rgb(135, 63, 195); /* oklch */ color: oklch(52.6% 0.198 305.6);
Tailwind
colors: {
custom: {
50: '#af79d6',
500: '#873fc3',
950: '#000000',
},
}SCSS
$custom: #873fc3; $custom-light: #af79d6; $custom-dark: #000000;
JSON
{
"hex": "#873fc3",
"rgb": {
"r": 135,
"g": 63,
"b": 195
},
"hsl": {
"h": 272.727,
"s": 52.381,
"l": 50.588
},
"oklch": {
"l": 0.52577,
"c": 0.19839,
"h": 305.6
},
"luminance": 0.12646
}Semantic roles & 50–950 ramp
primary
#873FC3
secondary
#ACCC92
accent
#DC4C8D
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110914
muted
#807B83