#8B31AA#8B31AA
#8B31AA is a mid, vivid purple. Relative luminance 0.106; OKLCH L 49.8% C 0.192 H 316.0°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).
Color values
| HEX | #8B31AA |
|---|---|
| RGB | rgb(139, 49, 170) |
| HSL | hsl(285, 55%, 43%) |
| HSV | hsv(285, 71%, 67%) |
| CMYK | cmyk(18.2%, 71.2%, 0%, 33.3%) |
| CIE-LAB | lab(38.88, 55.81, -47.50) |
| CIE-LCH | lch(38.88, 73.28, 319.60°) |
| OKLab | oklab(49.77% 0.1383 -0.1336) |
| OKLCH | oklch(49.77% 0.192 316) |
| XYZ | xyz(19.0003, 10.5886, 39.0654) |
| Luminance | 0.1059 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 4.16
Purple (survey)
#7E1E9C
ΔE00 4.52
Darkorchid
#9932CC
ΔE00 5.46
Barney
#AC1DB8
ΔE00 5.73
Warm Purple
#952E8F
ΔE00 6.11
Barney Purple
#A00498
ΔE00 6.31
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8B31AA #50AA31
analogous
#4E31AA #8B31AA #AA318C
triadic
#8B31AA #AA8B31 #31AA8B
tetradic
#8B31AA #AA4E31 #50AA31 #318CAA
square
#8B31AA #AA4E31 #50AA31 #318CAA
split-complementary
#8B31AA #8CAA31 #31AA4E
monochromatic
#3D164B #64237A #8B31AA #AB4DCC #C17CD9
Accessibility & contrast
On white
6.74
#8B31AA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.12
#8B31AA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8B31AA
6.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8B31AA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8B31AA | 1.00 | 6.74 | 3.12 | 6.74 |
| #FFFFFF | 6.74 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.12 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.74 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0056AD
Deuteranopia (green-blind)
#305EA7
Tritanopia (blue-blind)
#894A6A
Achromatopsia (no color)
#5C5C5C
Design tokens & code
CSS
--color: #8b31aa; /* rgb */ color: rgb(139, 49, 170); /* oklch */ color: oklch(49.8% 0.192 316.0);
Tailwind
colors: {
custom: {
50: '#b171c4',
500: '#8b31aa',
950: '#000000',
},
}SCSS
$custom: #8b31aa; $custom-light: #b171c4; $custom-dark: #000000;
JSON
{
"hex": "#8b31aa",
"rgb": {
"r": 139,
"g": 49,
"b": 170
},
"hsl": {
"h": 284.628,
"s": 55.251,
"l": 42.941
},
"oklch": {
"l": 0.49765,
"c": 0.19234,
"h": 316
},
"luminance": 0.10588
}Semantic roles & 50–950 ramp
primary
#8B31AA
secondary
#89C275
accent
#DF496F
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82