#8A3AB7#8A3AB7
#8A3AB7 is a mid, vivid violet. Relative luminance 0.118; OKLCH L 51.5% C 0.193 H 310.7°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).
Color values
| HEX | #8A3AB7 |
|---|---|
| RGB | rgb(138, 58, 183) |
| HSL | hsl(278, 52%, 47%) |
| HSV | hsv(278, 68%, 72%) |
| CMYK | cmyk(24.6%, 68.3%, 0%, 28.2%) |
| CIE-LAB | lab(40.97, 54.47, -51.83) |
| CIE-LCH | lch(40.97, 75.19, 316.42°) |
| OKLab | oklab(51.51% 0.1262 -0.1464) |
| OKLCH | oklch(51.51% 0.193 310.7) |
| XYZ | xyz(20.5399, 11.8487, 45.9956) |
| Luminance | 0.1185 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purply
#983FB2
ΔE00 3.58
Darkorchid
#9932CC
ΔE00 3.63
Darkviolet
#9400D3
ΔE00 5.82
Blueviolet
#8A2BE2
ΔE00 6.23
Barney
#AC1DB8
ΔE00 6.28
Royal Purple
#7851A9
ΔE00 6.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A3AB7 #67B73A
analogous
#4C3AB7 #8A3AB7 #B73AA6
triadic
#8A3AB7 #B78A3A #3AB78A
tetradic
#8A3AB7 #B74C3A #67B73A #3AA6B7
square
#8A3AB7 #B74C3A #67B73A #3AA6B7
split-complementary
#8A3AB7 #A6B73A #3AB74C
monochromatic
#441D5A #672B89 #8A3AB7 #A661CD #C090DC
Accessibility & contrast
On white
6.23
#8A3AB7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.37
#8A3AB7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A3AB7
6.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A3AB7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A3AB7 | 1.00 | 6.23 | 3.37 | 6.23 |
| #FFFFFF | 6.23 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.37 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.23 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005DBB
Deuteranopia (green-blind)
#2962B4
Tritanopia (blue-blind)
#845474
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #8a3ab7; /* rgb */ color: rgb(138, 58, 183); /* oklch */ color: oklch(51.5% 0.193 310.7);
Tailwind
colors: {
custom: {
50: '#b076cd',
500: '#8a3ab7',
950: '#000000',
},
}SCSS
$custom: #8a3ab7; $custom-light: #b076cd; $custom-dark: #000000;
JSON
{
"hex": "#8a3ab7",
"rgb": {
"r": 138,
"g": 58,
"b": 183
},
"hsl": {
"h": 278.4,
"s": 51.867,
"l": 47.255
},
"oklch": {
"l": 0.51507,
"c": 0.1933,
"h": 310.7
},
"luminance": 0.11848
}Semantic roles & 50–950 ramp
primary
#8A3AB7
secondary
#9DC786
accent
#DB4C80
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110914
muted
#807B82