#8A4AB6#8A4AB6
#8A4AB6 is a mid, vivid violet. Relative luminance 0.137; OKLCH L 53.5% C 0.170 H 309.1°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).
Color values
| HEX | #8A4AB6 |
|---|---|
| RGB | rgb(138, 74, 182) |
| HSL | hsl(276, 43%, 50%) |
| HSV | hsv(276, 59%, 71%) |
| CMYK | cmyk(24.2%, 59.3%, 0%, 28.6%) |
| CIE-LAB | lab(43.77, 46.42, -46.76) |
| CIE-LCH | lch(43.77, 65.89, 314.79°) |
| OKLab | oklab(53.51% 0.1071 -0.1316) |
| OKLCH | oklch(53.51% 0.17 309.1) |
| XYZ | xyz(21.3719, 13.6786, 45.7613) |
| Luminance | 0.1368 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purply
#983FB2
ΔE00 3.59
Royal Purple
#7851A9
ΔE00 4.32
Darkorchid
#9932CC
ΔE00 5.25
Deep Lavender
#8D5EB7
ΔE00 5.56
Medium Purple
#9E43A2
ΔE00 6.50
Amethyst
#9B5FC0
ΔE00 6.97
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A4AB6 #76B64A
analogous
#544AB6 #8A4AB6 #B64AAC
triadic
#8A4AB6 #B68A4A #4AB68A
tetradic
#8A4AB6 #B6544A #76B64A #4AACB6
square
#8A4AB6 #B6544A #76B64A #4AACB6
split-complementary
#8A4AB6 #ACB64A #4AB654
monochromatic
#48265F #69388B #8A4AB6 #A676C8 #C2A1D9
Accessibility & contrast
On white
5.62
#8A4AB6 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.74
#8A4AB6 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A4AB6
5.62:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A4AB6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A4AB6 | 1.00 | 5.62 | 3.74 | 5.62 |
| #FFFFFF | 5.62 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.74 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.62 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2165B9
Deuteranopia (green-blind)
#3C68B3
Tritanopia (blue-blind)
#845E79
Achromatopsia (no color)
#676767
Design tokens & code
CSS
--color: #8a4ab6; /* rgb */ color: rgb(138, 74, 182); /* oklch */ color: oklch(53.5% 0.170 309.1);
Tailwind
colors: {
custom: {
50: '#af80cc',
500: '#8a4ab6',
950: '#000000',
},
}SCSS
$custom: #8a4ab6; $custom-light: #af80cc; $custom-dark: #000000;
JSON
{
"hex": "#8a4ab6",
"rgb": {
"r": 138,
"g": 74,
"b": 182
},
"hsl": {
"h": 275.556,
"s": 42.52,
"l": 50.196
},
"oklch": {
"l": 0.53506,
"c": 0.16971,
"h": 309.1
},
"luminance": 0.13678
}Semantic roles & 50–950 ramp
primary
#8A4AB6
secondary
#A9C696
accent
#D25588
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A13
muted
#807C82