#873FC7#873FC7
#873FC7 is a mid, highly saturated violet. Relative luminance 0.128; OKLCH L 52.9% C 0.203 H 304.6°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).
Color values
| HEX | #873FC7 |
|---|---|
| RGB | rgb(135, 63, 199) |
| HSL | hsl(272, 55%, 51%) |
| HSV | hsv(272, 68%, 78%) |
| CMYK | cmyk(32.2%, 68.3%, 0%, 22%) |
| CIE-LAB | lab(42.51, 55.17, -58.73) |
| CIE-LCH | lch(42.51, 80.58, 313.21°) |
| OKLab | oklab(52.87% 0.115 -0.1668) |
| OKLCH | oklch(52.87% 0.203 304.6) |
| XYZ | xyz(22.0757, 12.8295, 55.3351) |
| Luminance | 0.1283 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 3.34
Blueviolet
#8A2BE2
ΔE00 4.27
Purply
#983FB2
ΔE00 5.45
Darkviolet
#9400D3
ΔE00 5.84
Violet (survey)
#9A0EEA
ΔE00 5.99
Bluish Purple
#703BE7
ΔE00 6.04
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#873FC7 #7FC73F
analogous
#433FC7 #873FC7 #C73FC3
triadic
#873FC7 #C7873F #3FC787
tetradic
#873FC7 #C7433F #7FC73F #3FC3C7
square
#873FC7 #C7433F #7FC73F #3FC3C7
split-complementary
#873FC7 #C3C73F #3FC743
monochromatic
#48206C #682D9B #873FC7 #A56ED5 #C29EE3
Accessibility & contrast
On white
5.89
#873FC7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.57
#873FC7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #873FC7
5.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##873FC7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##873FC7 | 1.00 | 5.89 | 3.57 | 5.89 |
| #FFFFFF | 5.89 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.89 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0063CB
Deuteranopia (green-blind)
#0564C4
Tritanopia (blue-blind)
#7B5E7E
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #873fc7; /* rgb */ color: rgb(135, 63, 199); /* oklch */ color: oklch(52.9% 0.203 304.6);
Tailwind
colors: {
custom: {
50: '#af79d9',
500: '#873fc7',
950: '#000000',
},
}SCSS
$custom: #873fc7; $custom-light: #af79d9; $custom-dark: #000000;
JSON
{
"hex": "#873fc7",
"rgb": {
"r": 135,
"g": 63,
"b": 199
},
"hsl": {
"h": 271.765,
"s": 54.839,
"l": 51.373
},
"oklch": {
"l": 0.52866,
"c": 0.20262,
"h": 304.6
},
"luminance": 0.12829
}Semantic roles & 50–950 ramp
primary
#873FC7
secondary
#AFCF93
accent
#DE4A90
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110915
muted
#807B83