#8A39AB#8A39AB
#8A39AB is a mid, vivid purple. Relative luminance 0.113; OKLCH L 50.6% C 0.183 H 314.6°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).
Color values
| HEX | #8A39AB |
|---|---|
| RGB | rgb(138, 57, 171) |
| HSL | hsl(283, 50%, 45%) |
| HSV | hsv(283, 67%, 67%) |
| CMYK | cmyk(19.3%, 66.7%, 0%, 32.9%) |
| CIE-LAB | lab(40.03, 52.33, -46.25) |
| CIE-LCH | lch(40.03, 69.84, 318.53°) |
| OKLab | oklab(50.58% 0.1282 -0.13) |
| OKLCH | oklch(50.58% 0.183 314.6) |
| XYZ | xyz(19.2938, 11.2704, 39.6793) |
| Luminance | 0.1127 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 3.28
Darkorchid
#9932CC
ΔE00 5.20
Purple (survey)
#7E1E9C
ΔE00 5.70
Medium Purple
#9E43A2
ΔE00 6.01
Barney
#AC1DB8
ΔE00 6.02
Warm Purple
#952E8F
ΔE00 6.49
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A39AB #5AAB39
analogous
#5139AB #8A39AB #AB3993
triadic
#8A39AB #AB8A39 #39AB8A
tetradic
#8A39AB #AB5139 #5AAB39 #3993AB
square
#8A39AB #AB5139 #5AAB39 #3993AB
split-complementary
#8A39AB #93AB39 #39AB51
monochromatic
#401A4F #652A7D #8A39AB #A859C8 #C087D7
Accessibility & contrast
On white
6.45
#8A39AB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.25
#8A39AB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A39AB
6.45:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A39AB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A39AB | 1.00 | 6.45 | 3.25 | 6.45 |
| #FFFFFF | 6.45 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.25 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.45 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005AAE
Deuteranopia (green-blind)
#3560A8
Tritanopia (blue-blind)
#874F6D
Achromatopsia (no color)
#5E5E5E
Design tokens & code
CSS
--color: #8a39ab; /* rgb */ color: rgb(138, 57, 171); /* oklch */ color: oklch(50.6% 0.183 314.6);
Tailwind
colors: {
custom: {
50: '#b075c5',
500: '#8a39ab',
950: '#000000',
},
}SCSS
$custom: #8a39ab; $custom-light: #b075c5; $custom-dark: #000000;
JSON
{
"hex": "#8a39ab",
"rgb": {
"r": 138,
"g": 57,
"b": 171
},
"hsl": {
"h": 282.632,
"s": 50,
"l": 44.706
},
"oklch": {
"l": 0.50582,
"c": 0.1826,
"h": 314.6
},
"luminance": 0.1127
}Semantic roles & 50–950 ramp
primary
#8A39AB
secondary
#92C17F
accent
#DA4E77
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82