#8A3AAE#8A3AAE
#8A3AAE is a mid, vivid purple. Relative luminance 0.115; OKLCH L 50.9% C 0.184 H 313.5°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).
Color values
| HEX | #8A3AAE |
|---|---|
| RGB | rgb(138, 58, 174) |
| HSL | hsl(281, 50%, 45%) |
| HSV | hsv(281, 67%, 68%) |
| CMYK | cmyk(20.7%, 66.7%, 0%, 31.8%) |
| CIE-LAB | lab(40.39, 52.52, -47.46) |
| CIE-LCH | lch(40.39, 70.78, 317.89°) |
| OKLab | oklab(50.9% 0.1269 -0.1336) |
| OKLCH | oklch(50.9% 0.184 313.5) |
| XYZ | xyz(19.6330, 11.4860, 41.2190) |
| Luminance | 0.1148 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 3.16
Darkorchid
#9932CC
ΔE00 4.77
Purple (survey)
#7E1E9C
ΔE00 6.04
Barney
#AC1DB8
ΔE00 6.06
Medium Purple
#9E43A2
ΔE00 6.20
Royal Purple
#7851A9
ΔE00 6.50
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A3AAE #5EAE3A
analogous
#503AAE #8A3AAE #AE3A98
triadic
#8A3AAE #AE8A3A #3AAE8A
tetradic
#8A3AAE #AE503A #5EAE3A #3A98AE
square
#8A3AAE #AE503A #5EAE3A #3A98AE
split-complementary
#8A3AAE #98AE3A #3AAE50
monochromatic
#411B52 #662B80 #8A3AAE #A75CC9 #C08AD8
Accessibility & contrast
On white
6.37
#8A3AAE on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.30
#8A3AAE on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A3AAE
6.37:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A3AAE | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A3AAE | 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)
#005BB1
Deuteranopia (green-blind)
#3361AB
Tritanopia (blue-blind)
#86516F
Achromatopsia (no color)
#5F5F5F
Design tokens & code
CSS
--color: #8a3aae; /* rgb */ color: rgb(138, 58, 174); /* oklch */ color: oklch(50.9% 0.184 313.5);
Tailwind
colors: {
custom: {
50: '#b076c7',
500: '#8a3aae',
950: '#000000',
},
}SCSS
$custom: #8a3aae; $custom-light: #b076c7; $custom-dark: #000000;
JSON
{
"hex": "#8a3aae",
"rgb": {
"r": 138,
"g": 58,
"b": 174
},
"hsl": {
"h": 281.379,
"s": 50,
"l": 45.49
},
"oklch": {
"l": 0.50898,
"c": 0.18424,
"h": 313.5
},
"luminance": 0.11485
}Semantic roles & 50–950 ramp
primary
#8A3AAE
secondary
#96C281
accent
#DA4E79
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82