#8A3AB8#8A3AB8
#8A3AB8 is a mid, vivid violet. Relative luminance 0.119; OKLCH L 51.6% C 0.194 H 310.5°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).
Color values
| HEX | #8A3AB8 |
|---|---|
| RGB | rgb(138, 58, 184) |
| HSL | hsl(278, 52%, 47%) |
| HSV | hsv(278, 68%, 72%) |
| CMYK | cmyk(25%, 68.5%, 0%, 27.8%) |
| CIE-LAB | lab(41.04, 54.69, -52.31) |
| CIE-LCH | lch(41.04, 75.68, 316.27°) |
| OKLab | oklab(51.58% 0.1261 -0.1478) |
| OKLCH | oklch(51.58% 0.194 310.5) |
| XYZ | xyz(20.6444, 11.8905, 46.5457) |
| Luminance | 0.1189 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 3.52
Purply
#983FB2
ΔE00 3.66
Darkviolet
#9400D3
ΔE00 5.73
Blueviolet
#8A2BE2
ΔE00 6.08
Barney
#AC1DB8
ΔE00 6.32
Royal Purple
#7851A9
ΔE00 6.58
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A3AB8 #68B83A
analogous
#4B3AB8 #8A3AB8 #B83AA7
triadic
#8A3AB8 #B88A3A #3AB88A
tetradic
#8A3AB8 #B84B3A #68B83A #3AA7B8
square
#8A3AB8 #B84B3A #68B83A #3AA7B8
split-complementary
#8A3AB8 #A7B83A #3AB84B
monochromatic
#441D5B #672B89 #8A3AB8 #A662CD #C090DC
Accessibility & contrast
On white
6.22
#8A3AB8 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.38
#8A3AB8 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A3AB8
6.22:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A3AB8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A3AB8 | 1.00 | 6.22 | 3.38 | 6.22 |
| #FFFFFF | 6.22 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.38 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.22 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005DBC
Deuteranopia (green-blind)
#2762B5
Tritanopia (blue-blind)
#845574
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #8a3ab8; /* rgb */ color: rgb(138, 58, 184); /* oklch */ color: oklch(51.6% 0.194 310.5);
Tailwind
colors: {
custom: {
50: '#b076ce',
500: '#8a3ab8',
950: '#000000',
},
}SCSS
$custom: #8a3ab8; $custom-light: #b076ce; $custom-dark: #000000;
JSON
{
"hex": "#8a3ab8",
"rgb": {
"r": 138,
"g": 58,
"b": 184
},
"hsl": {
"h": 278.095,
"s": 52.066,
"l": 47.451
},
"oklch": {
"l": 0.51576,
"c": 0.1943,
"h": 310.5
},
"luminance": 0.1189
}Semantic roles & 50–950 ramp
primary
#8A3AB8
secondary
#9EC787
accent
#DC4C81
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110914
muted
#807B82