#8A31C3#8A31C3
#8A31C3 is a mid, highly saturated violet. Relative luminance 0.115; OKLCH L 51.4% C 0.216 H 308.2°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).
Color values
| HEX | #8A31C3 |
|---|---|
| RGB | rgb(138, 49, 195) |
| HSL | hsl(277, 60%, 48%) |
| HSV | hsv(277, 75%, 76%) |
| CMYK | cmyk(29.2%, 74.9%, 0%, 23.5%) |
| CIE-LAB | lab(40.48, 60.88, -59.67) |
| CIE-LCH | lch(40.48, 85.25, 315.57°) |
| OKLab | oklab(51.42% 0.1335 -0.1694) |
| OKLCH | oklch(51.42% 0.216 308.2) |
| XYZ | xyz(21.4278, 11.5404, 52.7179) |
| Luminance | 0.1154 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 2.96
Darkviolet
#9400D3
ΔE00 3.76
Blueviolet
#8A2BE2
ΔE00 4.21
Violet (survey)
#9A0EEA
ΔE00 5.34
Purply
#983FB2
ΔE00 5.39
Vibrant Purple
#AD03DE
ΔE00 6.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A31C3 #6AC331
analogous
#4131C3 #8A31C3 #C331B3
triadic
#8A31C3 #C38A31 #31C38A
tetradic
#8A31C3 #C34131 #6AC331 #31B3C3
square
#8A31C3 #C34131 #6AC331 #31B3C3
split-complementary
#8A31C3 #B3C331 #31C341
monochromatic
#451861 #672592 #8A31C3 #A65BD6 #C18CE2
Accessibility & contrast
On white
6.35
#8A31C3 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.31
#8A31C3 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A31C3
6.35:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A31C3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A31C3 | 1.00 | 6.35 | 3.31 | 6.35 |
| #FFFFFF | 6.35 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.31 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.35 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005CC7
Deuteranopia (green-blind)
#0060C0
Tritanopia (blue-blind)
#815478
Achromatopsia (no color)
#5F5F5F
Design tokens & code
CSS
--color: #8a31c3; /* rgb */ color: rgb(138, 49, 195); /* oklch */ color: oklch(51.4% 0.216 308.2);
Tailwind
colors: {
custom: {
50: '#b172d6',
500: '#8a31c3',
950: '#000000',
},
}SCSS
$custom: #8a31c3; $custom-light: #b172d6; $custom-dark: #000000;
JSON
{
"hex": "#8a31c3",
"rgb": {
"r": 138,
"g": 49,
"b": 195
},
"hsl": {
"h": 276.575,
"s": 59.836,
"l": 47.843
},
"oklch": {
"l": 0.51419,
"c": 0.21567,
"h": 308.2
},
"luminance": 0.1154
}Semantic roles & 50–950 ramp
primary
#8A31C3
secondary
#A0CC83
accent
#E34583
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83