#8D31C2#8D31C2
#8D31C2 is a mid, highly saturated violet. Relative luminance 0.118; OKLCH L 51.7% C 0.216 H 309.7°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).
Color values
| HEX | #8D31C2 |
|---|---|
| RGB | rgb(141, 49, 194) |
| HSL | hsl(278, 60%, 48%) |
| HSV | hsv(278, 75%, 76%) |
| CMYK | cmyk(27.3%, 74.7%, 0%, 23.9%) |
| CIE-LAB | lab(40.82, 61.22, -58.51) |
| CIE-LCH | lch(40.82, 84.68, 316.30°) |
| OKLab | oklab(51.73% 0.1376 -0.1659) |
| OKLCH | oklch(51.73% 0.216 309.7) |
| XYZ | xyz(21.8185, 11.7548, 52.1480) |
| Luminance | 0.1175 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 2.54
Darkviolet
#9400D3
ΔE00 3.84
Blueviolet
#8A2BE2
ΔE00 4.50
Purply
#983FB2
ΔE00 4.86
Violet (survey)
#9A0EEA
ΔE00 5.38
Vibrant Purple
#AD03DE
ΔE00 5.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8D31C2 #66C231
analogous
#4431C2 #8D31C2 #C231AE
triadic
#8D31C2 #C28D31 #31C28D
tetradic
#8D31C2 #C24431 #66C231 #31AEC2
square
#8D31C2 #C24431 #66C231 #31AEC2
split-complementary
#8D31C2 #AEC231 #31C244
monochromatic
#461860 #692591 #8D31C2 #A95BD6 #C28CE2
Accessibility & contrast
On white
6.27
#8D31C2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.35
#8D31C2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8D31C2
6.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8D31C2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8D31C2 | 1.00 | 6.27 | 3.35 | 6.27 |
| #FFFFFF | 6.27 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.35 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.27 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005CC6
Deuteranopia (green-blind)
#0462BF
Tritanopia (blue-blind)
#855378
Achromatopsia (no color)
#606060
Design tokens & code
CSS
--color: #8d31c2; /* rgb */ color: rgb(141, 49, 194); /* oklch */ color: oklch(51.7% 0.216 309.7);
Tailwind
colors: {
custom: {
50: '#b372d5',
500: '#8d31c2',
950: '#000000',
},
}SCSS
$custom: #8d31c2; $custom-light: #b372d5; $custom-dark: #000000;
JSON
{
"hex": "#8d31c2",
"rgb": {
"r": 141,
"g": 49,
"b": 194
},
"hsl": {
"h": 278.069,
"s": 59.671,
"l": 47.647
},
"oklch": {
"l": 0.51729,
"c": 0.21555,
"h": 309.7
},
"luminance": 0.11754
}Semantic roles & 50–950 ramp
primary
#8D31C2
secondary
#9ECC83
accent
#E3457F
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#120914
muted
#817B83