#8A3BA6#8A3BA6
#8A3BA6 is a mid, vivid purple. Relative luminance 0.113; OKLCH L 50.5% C 0.175 H 316.1°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).
Color values
| HEX | #8A3BA6 |
|---|---|
| RGB | rgb(138, 59, 166) |
| HSL | hsl(284, 48%, 44%) |
| HSV | hsv(284, 64%, 65%) |
| CMYK | cmyk(16.9%, 64.5%, 0%, 34.9%) |
| CIE-LAB | lab(40.06, 50.36, -43.23) |
| CIE-LCH | lch(40.06, 66.37, 319.35°) |
| OKLab | oklab(50.5% 0.126 -0.1212) |
| OKLCH | oklch(50.5% 0.175 316.1) |
| XYZ | xyz(18.9271, 11.2851, 37.2502) |
| Luminance | 0.1128 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 3.26
Medium Purple
#9E43A2
ΔE00 5.35
Warm Purple
#952E8F
ΔE00 5.78
Purple (survey)
#7E1E9C
ΔE00 5.89
Darkorchid
#9932CC
ΔE00 6.00
Barney
#AC1DB8
ΔE00 6.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A3BA6 #57A63B
analogous
#553BA6 #8A3BA6 #A63B8D
triadic
#8A3BA6 #A68A3B #3BA68A
tetradic
#8A3BA6 #A6553B #57A63B #3B8DA6
square
#8A3BA6 #A6553B #57A63B #3B8DA6
split-complementary
#8A3BA6 #8DA63B #3BA655
monochromatic
#3F1B4C #642B79 #8A3BA6 #A85AC4 #C087D4
Accessibility & contrast
On white
6.45
#8A3BA6 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.26
#8A3BA6 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A3BA6
6.45:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A3BA6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A3BA6 | 1.00 | 6.45 | 3.26 | 6.45 |
| #FFFFFF | 6.45 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.26 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.45 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#135AA9
Deuteranopia (green-blind)
#3B61A3
Tritanopia (blue-blind)
#884E6B
Achromatopsia (no color)
#5E5E5E
Design tokens & code
CSS
--color: #8a3ba6; /* rgb */ color: rgb(138, 59, 166); /* oklch */ color: oklch(50.5% 0.175 316.1);
Tailwind
colors: {
custom: {
50: '#af76c1',
500: '#8a3ba6',
950: '#000000',
},
}SCSS
$custom: #8a3ba6; $custom-light: #af76c1; $custom-dark: #000000;
JSON
{
"hex": "#8a3ba6",
"rgb": {
"r": 138,
"g": 59,
"b": 166
},
"hsl": {
"h": 284.299,
"s": 47.556,
"l": 44.118
},
"oklch": {
"l": 0.505,
"c": 0.17484,
"h": 316.1
},
"luminance": 0.11284
}Semantic roles & 50–950 ramp
primary
#8A3BA6
secondary
#8FBF7E
accent
#D75174
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110912
muted
#807B81