#8A3BA1#8A3BA1
#8A3BA1 is a mid, vivid purple. Relative luminance 0.111; OKLCH L 50.2% C 0.170 H 317.9°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).
Color values
| HEX | #8A3BA1 |
|---|---|
| RGB | rgb(138, 59, 161) |
| HSL | hsl(286, 46%, 43%) |
| HSV | hsv(286, 63%, 63%) |
| CMYK | cmyk(14.3%, 63.4%, 0%, 36.9%) |
| CIE-LAB | lab(39.76, 49.32, -40.72) |
| CIE-LCH | lch(39.76, 63.95, 320.46°) |
| OKLab | oklab(50.19% 0.126 -0.1139) |
| OKLCH | oklch(50.19% 0.17 317.9) |
| XYZ | xyz(18.4773, 11.1052, 34.8815) |
| Luminance | 0.1110 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 3.68
Medium Purple
#9E43A2
ΔE00 4.99
Warm Purple
#952E8F
ΔE00 4.99
Purple (survey)
#7E1E9C
ΔE00 5.88
Ugly Purple
#A442A0
ΔE00 6.29
Barney
#AC1DB8
ΔE00 6.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A3BA1 #52A13B
analogous
#573BA1 #8A3BA1 #A13B85
triadic
#8A3BA1 #A18A3B #3BA18A
tetradic
#8A3BA1 #A1573B #52A13B #3B85A1
square
#8A3BA1 #A1573B #52A13B #3B85A1
split-complementary
#8A3BA1 #85A13B #3BA157
monochromatic
#3D1A47 #642B74 #8A3BA1 #AA58C2 #C184D2
Accessibility & contrast
On white
6.52
#8A3BA1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.22
#8A3BA1 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A3BA1
6.52:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A3BA1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A3BA1 | 1.00 | 6.52 | 3.22 | 6.52 |
| #FFFFFF | 6.52 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.22 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.52 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1C59A4
Deuteranopia (green-blind)
#3F609E
Tritanopia (blue-blind)
#894D68
Achromatopsia (no color)
#5E5E5E
Design tokens & code
CSS
--color: #8a3ba1; /* rgb */ color: rgb(138, 59, 161); /* oklch */ color: oklch(50.2% 0.170 317.9);
Tailwind
colors: {
custom: {
50: '#af76bd',
500: '#8a3ba1',
950: '#000000',
},
}SCSS
$custom: #8a3ba1; $custom-light: #af76bd; $custom-dark: #000000;
JSON
{
"hex": "#8a3ba1",
"rgb": {
"r": 138,
"g": 59,
"b": 161
},
"hsl": {
"h": 286.471,
"s": 46.364,
"l": 43.137
},
"oklch": {
"l": 0.50187,
"c": 0.16985,
"h": 317.9
},
"luminance": 0.11104
}Semantic roles & 50–950 ramp
primary
#8A3BA1
secondary
#8ABC7C
accent
#D65270
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110912
muted
#807B81