#8A39A2#8A39A2
#8A39A2 is a mid, vivid purple. Relative luminance 0.109; OKLCH L 50.0% C 0.174 H 317.7°. Best body text is #FFFFFF at 6.59:1 contrast (WCAG AA passes).
Color values
| HEX | #8A39A2 |
|---|---|
| RGB | rgb(138, 57, 162) |
| HSL | hsl(286, 48%, 43%) |
| HSV | hsv(286, 65%, 64%) |
| CMYK | cmyk(14.8%, 64.8%, 0%, 36.5%) |
| CIE-LAB | lab(39.48, 50.46, -41.76) |
| CIE-LCH | lch(39.48, 65.50, 320.39°) |
| OKLab | oklab(50% 0.1285 -0.1169) |
| OKLCH | oklch(50% 0.174 317.7) |
| XYZ | xyz(18.4650, 10.9389, 35.3142) |
| Luminance | 0.1094 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 3.75
Warm Purple
#952E8F
ΔE00 5.05
Medium Purple
#9E43A2
ΔE00 5.29
Purple (survey)
#7E1E9C
ΔE00 5.49
Barney
#AC1DB8
ΔE00 6.29
Barney Purple
#A00498
ΔE00 6.42
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A39A2 #51A239
analogous
#5639A2 #8A39A2 #A23985
triadic
#8A39A2 #A28A39 #39A28A
tetradic
#8A39A2 #A25639 #51A239 #3985A2
square
#8A39A2 #A25639 #51A239 #3985A2
split-complementary
#8A39A2 #85A239 #39A256
monochromatic
#3D1947 #632975 #8A39A2 #AA55C3 #C182D3
Accessibility & contrast
On white
6.59
#8A39A2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.19
#8A39A2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A39A2
6.59:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A39A2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A39A2 | 1.00 | 6.59 | 3.19 | 6.59 |
| #FFFFFF | 6.59 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.19 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.59 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1558A5
Deuteranopia (green-blind)
#3D609F
Tritanopia (blue-blind)
#894C68
Achromatopsia (no color)
#5D5D5D
Design tokens & code
CSS
--color: #8a39a2; /* rgb */ color: rgb(138, 57, 162); /* oklch */ color: oklch(50.0% 0.174 317.7);
Tailwind
colors: {
custom: {
50: '#af75be',
500: '#8a39a2',
950: '#000000',
},
}SCSS
$custom: #8a39a2; $custom-light: #af75be; $custom-dark: #000000;
JSON
{
"hex": "#8a39a2",
"rgb": {
"r": 138,
"g": 57,
"b": 162
},
"hsl": {
"h": 286.286,
"s": 47.945,
"l": 42.941
},
"oklch": {
"l": 0.50004,
"c": 0.17371,
"h": 317.7
},
"luminance": 0.10938
}Semantic roles & 50–950 ramp
primary
#8A39A2
secondary
#89BD7A
accent
#D8506F
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110912
muted
#807B81