#8A3AA6#8A3AA6
#8A3AA6 is a mid, vivid purple. Relative luminance 0.112; OKLCH L 50.4% C 0.176 H 316.2°. Best body text is #FFFFFF at 6.49:1 contrast (WCAG AA passes).
Color values
| HEX | #8A3AA6 |
|---|---|
| RGB | rgb(138, 58, 166) |
| HSL | hsl(284, 48%, 44%) |
| HSV | hsv(284, 65%, 65%) |
| CMYK | cmyk(16.9%, 65.1%, 0%, 34.9%) |
| CIE-LAB | lab(39.89, 50.82, -43.50) |
| CIE-LCH | lch(39.89, 66.90, 319.44°) |
| OKLab | oklab(50.38% 0.1272 -0.122) |
| OKLCH | oklch(50.38% 0.176 316.2) |
| XYZ | xyz(18.8762, 11.1833, 37.2333) |
| Luminance | 0.1118 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 3.35
Medium Purple
#9E43A2
ΔE00 5.46
Purple (survey)
#7E1E9C
ΔE00 5.70
Warm Purple
#952E8F
ΔE00 5.73
Darkorchid
#9932CC
ΔE00 5.98
Barney
#AC1DB8
ΔE00 6.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A3AA6 #56A63A
analogous
#543AA6 #8A3AA6 #A63A8C
triadic
#8A3AA6 #A68A3A #3AA68A
tetradic
#8A3AA6 #A6543A #56A63A #3A8CA6
square
#8A3AA6 #A6543A #56A63A #3A8CA6
split-complementary
#8A3AA6 #8CA63A #3AA654
monochromatic
#3F1A4B #642A79 #8A3AA6 #A958C5 #C086D5
Accessibility & contrast
On white
6.49
#8A3AA6 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.24
#8A3AA6 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A3AA6
6.49:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A3AA6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A3AA6 | 1.00 | 6.49 | 3.24 | 6.49 |
| #FFFFFF | 6.49 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.24 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.49 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1059A9
Deuteranopia (green-blind)
#3A60A3
Tritanopia (blue-blind)
#884E6B
Achromatopsia (no color)
#5E5E5E
Design tokens & code
CSS
--color: #8a3aa6; /* rgb */ color: rgb(138, 58, 166); /* oklch */ color: oklch(50.4% 0.176 316.2);
Tailwind
colors: {
custom: {
50: '#af76c1',
500: '#8a3aa6',
950: '#000000',
},
}SCSS
$custom: #8a3aa6; $custom-light: #af76c1; $custom-dark: #000000;
JSON
{
"hex": "#8a3aa6",
"rgb": {
"r": 138,
"g": 58,
"b": 166
},
"hsl": {
"h": 284.444,
"s": 48.214,
"l": 43.922
},
"oklch": {
"l": 0.50378,
"c": 0.17625,
"h": 316.2
},
"luminance": 0.11183
}Semantic roles & 50–950 ramp
primary
#8A3AA6
secondary
#8EBF7D
accent
#D85073
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110912
muted
#807B81