#8A3BA7#8A3BA7
#8A3BA7 is a mid, vivid purple. Relative luminance 0.113; OKLCH L 50.6% C 0.176 H 315.8°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).
Color values
| HEX | #8A3BA7 |
|---|---|
| RGB | rgb(138, 59, 167) |
| HSL | hsl(284, 48%, 44%) |
| HSV | hsv(284, 65%, 65%) |
| CMYK | cmyk(17.4%, 64.7%, 0%, 34.5%) |
| CIE-LAB | lab(40.12, 50.57, -43.73) |
| CIE-LCH | lch(40.12, 66.85, 319.15°) |
| OKLab | oklab(50.56% 0.126 -0.1227) |
| OKLCH | oklch(50.56% 0.176 315.8) |
| XYZ | xyz(19.0192, 11.3219, 37.7352) |
| Luminance | 0.1132 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 3.20
Medium Purple
#9E43A2
ΔE00 5.44
Darkorchid
#9932CC
ΔE00 5.84
Purple (survey)
#7E1E9C
ΔE00 5.91
Warm Purple
#952E8F
ΔE00 5.94
Barney
#AC1DB8
ΔE00 6.19
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A3BA7 #58A73B
analogous
#543BA7 #8A3BA7 #A73B8E
triadic
#8A3BA7 #A78A3B #3BA78A
tetradic
#8A3BA7 #A7543B #58A73B #3B8EA7
square
#8A3BA7 #A7543B #58A73B #3B8EA7
split-complementary
#8A3BA7 #8EA73B #3BA754
monochromatic
#3F1B4D #652B7A #8A3BA7 #A85AC5 #C088D5
Accessibility & contrast
On white
6.43
#8A3BA7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.26
#8A3BA7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A3BA7
6.43:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A3BA7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A3BA7 | 1.00 | 6.43 | 3.26 | 6.43 |
| #FFFFFF | 6.43 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.26 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.43 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#115AAA
Deuteranopia (green-blind)
#3A61A4
Tritanopia (blue-blind)
#884F6C
Achromatopsia (no color)
#5F5F5F
Design tokens & code
CSS
--color: #8a3ba7; /* rgb */ color: rgb(138, 59, 167); /* oklch */ color: oklch(50.6% 0.176 315.8);
Tailwind
colors: {
custom: {
50: '#af76c2',
500: '#8a3ba7',
950: '#000000',
},
}SCSS
$custom: #8a3ba7; $custom-light: #af76c2; $custom-dark: #000000;
JSON
{
"hex": "#8a3ba7",
"rgb": {
"r": 138,
"g": 59,
"b": 167
},
"hsl": {
"h": 283.889,
"s": 47.788,
"l": 44.314
},
"oklch": {
"l": 0.50563,
"c": 0.17584,
"h": 315.8
},
"luminance": 0.11321
}Semantic roles & 50–950 ramp
primary
#8A3BA7
secondary
#90BF7F
accent
#D75075
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110912
muted
#807B81