#8A31A9#8A31A9
#8A31A9 is a mid, vivid purple. Relative luminance 0.105; OKLCH L 49.6% C 0.191 H 315.9°. Best body text is #FFFFFF at 6.79:1 contrast (WCAG AA passes).
Color values
| HEX | #8A31A9 |
|---|---|
| RGB | rgb(138, 49, 169) |
| HSL | hsl(285, 55%, 43%) |
| HSV | hsv(285, 71%, 66%) |
| CMYK | cmyk(18.3%, 71%, 0%, 33.7%) |
| CIE-LAB | lab(38.66, 55.39, -47.25) |
| CIE-LCH | lch(38.66, 72.81, 319.53°) |
| OKLab | oklab(49.56% 0.1372 -0.1329) |
| OKLCH | oklch(49.56% 0.191 315.9) |
| XYZ | xyz(18.7399, 10.4652, 38.5613) |
| Luminance | 0.1046 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 4.33
Purple (survey)
#7E1E9C
ΔE00 4.35
Darkorchid
#9932CC
ΔE00 5.66
Barney
#AC1DB8
ΔE00 5.92
Warm Purple
#952E8F
ΔE00 6.09
Barney Purple
#A00498
ΔE00 6.33
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A31A9 #50A931
analogous
#4E31A9 #8A31A9 #A9318C
triadic
#8A31A9 #A98A31 #31A98A
tetradic
#8A31A9 #A94E31 #50A931 #318CA9
square
#8A31A9 #A94E31 #50A931 #318CA9
split-complementary
#8A31A9 #8CA931 #31A94E
monochromatic
#3D154A #63237A #8A31A9 #AA4CCB #C17CD9
Accessibility & contrast
On white
6.79
#8A31A9 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.09
#8A31A9 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A31A9
6.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A31A9 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A31A9 | 1.00 | 6.79 | 3.09 | 6.79 |
| #FFFFFF | 6.79 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.09 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.79 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0056AC
Deuteranopia (green-blind)
#305DA6
Tritanopia (blue-blind)
#88496A
Achromatopsia (no color)
#5B5B5B
Design tokens & code
CSS
--color: #8a31a9; /* rgb */ color: rgb(138, 49, 169); /* oklch */ color: oklch(49.6% 0.191 315.9);
Tailwind
colors: {
custom: {
50: '#b071c3',
500: '#8a31a9',
950: '#000000',
},
}SCSS
$custom: #8a31a9; $custom-light: #b071c3; $custom-dark: #000000;
JSON
{
"hex": "#8a31a9",
"rgb": {
"r": 138,
"g": 49,
"b": 169
},
"hsl": {
"h": 284.5,
"s": 55.046,
"l": 42.745
},
"oklch": {
"l": 0.49561,
"c": 0.19102,
"h": 315.9
},
"luminance": 0.10464
}Semantic roles & 50–950 ramp
primary
#8A31A9
secondary
#88C174
accent
#DE4970
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82