#8A31C2#8A31C2
#8A31C2 is a mid, highly saturated violet. Relative luminance 0.115; OKLCH L 51.3% C 0.215 H 308.5°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).
Color values
| HEX | #8A31C2 |
|---|---|
| RGB | rgb(138, 49, 194) |
| HSL | hsl(277, 60%, 48%) |
| HSV | hsv(277, 75%, 76%) |
| CMYK | cmyk(28.9%, 74.7%, 0%, 23.9%) |
| CIE-LAB | lab(40.40, 60.66, -59.21) |
| CIE-LCH | lch(40.40, 84.77, 315.69°) |
| OKLab | oklab(51.34% 0.1336 -0.1681) |
| OKLCH | oklch(51.34% 0.215 308.5) |
| XYZ | xyz(21.3151, 11.4953, 52.1244) |
| Luminance | 0.1149 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 3.00
Darkviolet
#9400D3
ΔE00 3.81
Blueviolet
#8A2BE2
ΔE00 4.36
Purply
#983FB2
ΔE00 5.30
Violet (survey)
#9A0EEA
ΔE00 5.46
Vibrant Purple
#AD03DE
ΔE00 6.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A31C2 #69C231
analogous
#4231C2 #8A31C2 #C231B1
triadic
#8A31C2 #C28A31 #31C28A
tetradic
#8A31C2 #C24231 #69C231 #31B1C2
square
#8A31C2 #C24231 #69C231 #31B1C2
split-complementary
#8A31C2 #B1C231 #31C242
monochromatic
#441860 #672591 #8A31C2 #A65BD6 #C18CE2
Accessibility & contrast
On white
6.37
#8A31C2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.30
#8A31C2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A31C2
6.37:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A31C2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A31C2 | 1.00 | 6.37 | 3.30 | 6.37 |
| #FFFFFF | 6.37 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.30 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.37 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005CC6
Deuteranopia (green-blind)
#0060BF
Tritanopia (blue-blind)
#815478
Achromatopsia (no color)
#5F5F5F
Design tokens & code
CSS
--color: #8a31c2; /* rgb */ color: rgb(138, 49, 194); /* oklch */ color: oklch(51.3% 0.215 308.5);
Tailwind
colors: {
custom: {
50: '#b172d5',
500: '#8a31c2',
950: '#000000',
},
}SCSS
$custom: #8a31c2; $custom-light: #b172d5; $custom-dark: #000000;
JSON
{
"hex": "#8a31c2",
"rgb": {
"r": 138,
"g": 49,
"b": 194
},
"hsl": {
"h": 276.828,
"s": 59.671,
"l": 47.647
},
"oklch": {
"l": 0.51344,
"c": 0.21472,
"h": 308.5
},
"luminance": 0.11495
}Semantic roles & 50–950 ramp
primary
#8A31C2
secondary
#9FCC83
accent
#E34582
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83