#8A31B1#8A31B1
#8A31B1 is a mid, vivid purple. Relative luminance 0.108; OKLCH L 50.1% C 0.199 H 313.4°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).
Color values
| HEX | #8A31B1 |
|---|---|
| RGB | rgb(138, 49, 177) |
| HSL | hsl(282, 57%, 44%) |
| HSV | hsv(282, 72%, 69%) |
| CMYK | cmyk(22%, 72.3%, 0%, 30.6%) |
| CIE-LAB | lab(39.20, 57.04, -51.15) |
| CIE-LCH | lch(39.20, 76.62, 318.12°) |
| OKLab | oklab(50.11% 0.1363 -0.1444) |
| OKLCH | oklch(50.11% 0.199 313.4) |
| XYZ | xyz(19.5140, 10.7748, 42.6383) |
| Luminance | 0.1077 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 4.32
Darkorchid
#9932CC
ΔE00 4.58
Purple (survey)
#7E1E9C
ΔE00 4.97
Darkviolet
#9400D3
ΔE00 5.44
Barney
#AC1DB8
ΔE00 5.93
Blueviolet
#8A2BE2
ΔE00 7.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A31B1 #58B131
analogous
#4A31B1 #8A31B1 #B13198
triadic
#8A31B1 #B18A31 #31B18A
tetradic
#8A31B1 #B14A31 #58B131 #3198B1
square
#8A31B1 #B14A31 #58B131 #3198B1
split-complementary
#8A31B1 #98B131 #31B14A
monochromatic
#3F1651 #652481 #8A31B1 #A851CF #C080DC
Accessibility & contrast
On white
6.66
#8A31B1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.15
#8A31B1 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A31B1
6.66:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A31B1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A31B1 | 1.00 | 6.66 | 3.15 | 6.66 |
| #FFFFFF | 6.66 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.15 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.66 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0058B5
Deuteranopia (green-blind)
#265EAE
Tritanopia (blue-blind)
#864D6E
Achromatopsia (no color)
#5C5C5C
Design tokens & code
CSS
--color: #8a31b1; /* rgb */ color: rgb(138, 49, 177); /* oklch */ color: oklch(50.1% 0.199 313.4);
Tailwind
colors: {
custom: {
50: '#b071c9',
500: '#8a31b1',
950: '#000000',
},
}SCSS
$custom: #8a31b1; $custom-light: #b071c9; $custom-dark: #000000;
JSON
{
"hex": "#8a31b1",
"rgb": {
"r": 138,
"g": 49,
"b": 177
},
"hsl": {
"h": 281.719,
"s": 56.637,
"l": 44.314
},
"oklch": {
"l": 0.50111,
"c": 0.19856,
"h": 313.4
},
"luminance": 0.10774
}Semantic roles & 50–950 ramp
primary
#8A31B1
secondary
#90C579
accent
#E04876
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82