#8A4ABA#8A4ABA
#8A4ABA is a mid, vivid violet. Relative luminance 0.138; OKLCH L 53.8% C 0.174 H 307.9°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).
Color values
| HEX | #8A4ABA |
|---|---|
| RGB | rgb(138, 74, 186) |
| HSL | hsl(274, 45%, 51%) |
| HSV | hsv(274, 60%, 73%) |
| CMYK | cmyk(25.8%, 60.2%, 0%, 27.1%) |
| CIE-LAB | lab(44.01, 47.35, -48.71) |
| CIE-LCH | lch(44.01, 67.93, 314.19°) |
| OKLab | oklab(53.76% 0.1071 -0.1374) |
| OKLCH | oklch(53.76% 0.174 307.9) |
| XYZ | xyz(21.7911, 13.8463, 47.9695) |
| Luminance | 0.1385 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purply
#983FB2
ΔE00 3.93
Royal Purple
#7851A9
ΔE00 4.56
Darkorchid
#9932CC
ΔE00 4.93
Deep Lavender
#8D5EB7
ΔE00 5.62
Amethyst
#9B5FC0
ΔE00 6.95
Medium Purple
#9E43A2
ΔE00 7.04
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A4ABA #7ABA4A
analogous
#524ABA #8A4ABA #BA4AB2
triadic
#8A4ABA #BA8A4A #4ABA8A
tetradic
#8A4ABA #BA524A #7ABA4A #4AB2BA
square
#8A4ABA #BA524A #7ABA4A #4AB2BA
split-complementary
#8A4ABA #B2BA4A #4ABA52
monochromatic
#492664 #6A3790 #8A4ABA #A776CB #C3A3DC
Accessibility & contrast
On white
5.57
#8A4ABA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.77
#8A4ABA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A4ABA
5.57:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A4ABA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A4ABA | 1.00 | 5.57 | 3.77 | 5.57 |
| #FFFFFF | 5.57 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.77 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.57 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1A66BE
Deuteranopia (green-blind)
#3969B7
Tritanopia (blue-blind)
#83607B
Achromatopsia (no color)
#686868
Design tokens & code
CSS
--color: #8a4aba; /* rgb */ color: rgb(138, 74, 186); /* oklch */ color: oklch(53.8% 0.174 307.9);
Tailwind
colors: {
custom: {
50: '#af80cf',
500: '#8a4aba',
950: '#000000',
},
}SCSS
$custom: #8a4aba; $custom-light: #af80cf; $custom-dark: #000000;
JSON
{
"hex": "#8a4aba",
"rgb": {
"r": 138,
"g": 74,
"b": 186
},
"hsl": {
"h": 274.286,
"s": 44.8,
"l": 50.98
},
"oklch": {
"l": 0.53762,
"c": 0.17418,
"h": 307.9
},
"luminance": 0.13846
}Semantic roles & 50–950 ramp
primary
#8A4ABA
secondary
#ACC997
accent
#D5538B
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A14
muted
#807C82