#873FC2#873FC2
#873FC2 is a mid, vivid violet. Relative luminance 0.126; OKLCH L 52.5% C 0.197 H 305.8°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).
Color values
| HEX | #873FC2 |
|---|---|
| RGB | rgb(135, 63, 194) |
| HSL | hsl(273, 52%, 50%) |
| HSV | hsv(273, 68%, 76%) |
| CMYK | cmyk(30.4%, 67.5%, 0%, 23.9%) |
| CIE-LAB | lab(42.16, 54.00, -56.39) |
| CIE-LCH | lch(42.16, 78.08, 313.76°) |
| OKLab | oklab(52.51% 0.1156 -0.1599) |
| OKLCH | oklch(52.51% 0.197 305.8) |
| XYZ | xyz(21.5047, 12.6011, 52.3278) |
| Luminance | 0.1260 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 3.39
Blueviolet
#8A2BE2
ΔE00 4.87
Purply
#983FB2
ΔE00 4.89
Darkviolet
#9400D3
ΔE00 5.95
Royal Purple
#7851A9
ΔE00 6.26
Violet (survey)
#9A0EEA
ΔE00 6.45
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#873FC2 #7AC23F
analogous
#453FC2 #873FC2 #C23FBC
triadic
#873FC2 #C2873F #3FC287
tetradic
#873FC2 #C2453F #7AC23F #3FBCC2
square
#873FC2 #C2453F #7AC23F #3FBCC2
split-complementary
#873FC2 #BCC23F #3FC245
monochromatic
#472066 #672F95 #873FC2 #A46DD1 #C19CE0
Accessibility & contrast
On white
5.97
#873FC2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.52
#873FC2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #873FC2
5.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##873FC2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##873FC2 | 1.00 | 5.97 | 3.52 | 5.97 |
| #FFFFFF | 5.97 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.97 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0061C6
Deuteranopia (green-blind)
#1764BF
Tritanopia (blue-blind)
#7D5C7B
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #873fc2; /* rgb */ color: rgb(135, 63, 194); /* oklch */ color: oklch(52.5% 0.197 305.8);
Tailwind
colors: {
custom: {
50: '#ae79d5',
500: '#873fc2',
950: '#000000',
},
}SCSS
$custom: #873fc2; $custom-light: #ae79d5; $custom-dark: #000000;
JSON
{
"hex": "#873fc2",
"rgb": {
"r": 135,
"g": 63,
"b": 194
},
"hsl": {
"h": 272.977,
"s": 51.779,
"l": 50.392
},
"oklch": {
"l": 0.52506,
"c": 0.19733,
"h": 305.8
},
"luminance": 0.12601
}Semantic roles & 50–950 ramp
primary
#873FC2
secondary
#ACCC91
accent
#DB4D8D
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110914
muted
#807B83