#8A4ABB#8A4ABB
#8A4ABB is a mid, vivid violet. Relative luminance 0.139; OKLCH L 53.8% C 0.175 H 307.7°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).
Color values
| HEX | #8A4ABB |
|---|---|
| RGB | rgb(138, 74, 187) |
| HSL | hsl(274, 45%, 51%) |
| HSV | hsv(274, 60%, 73%) |
| CMYK | cmyk(26.2%, 60.4%, 0%, 26.7%) |
| CIE-LAB | lab(44.07, 47.58, -49.20) |
| CIE-LCH | lch(44.07, 68.44, 314.04°) |
| OKLab | oklab(53.83% 0.1071 -0.1388) |
| OKLCH | oklch(53.83% 0.175 307.7) |
| XYZ | xyz(21.8978, 13.8890, 48.5313) |
| Luminance | 0.1389 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purply
#983FB2
ΔE00 4.03
Royal Purple
#7851A9
ΔE00 4.63
Darkorchid
#9932CC
ΔE00 4.86
Deep Lavender
#8D5EB7
ΔE00 5.65
Amethyst
#9B5FC0
ΔE00 6.95
Medium Purple
#9E43A2
ΔE00 7.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A4ABB #7BBB4A
analogous
#514ABB #8A4ABB #BB4AB4
triadic
#8A4ABB #BB8A4A #4ABB8A
tetradic
#8A4ABB #BB514A #7BBB4A #4AB4BB
square
#8A4ABB #BB514A #7BBB4A #4AB4BB
split-complementary
#8A4ABB #B4BB4A #4ABB51
monochromatic
#492665 #6A3791 #8A4ABB #A776CC #C4A3DC
Accessibility & contrast
On white
5.56
#8A4ABB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.78
#8A4ABB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A4ABB
5.56:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A4ABB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A4ABB | 1.00 | 5.56 | 3.78 | 5.56 |
| #FFFFFF | 5.56 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.78 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.56 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1866BF
Deuteranopia (green-blind)
#3869B8
Tritanopia (blue-blind)
#82607B
Achromatopsia (no color)
#686868
Design tokens & code
CSS
--color: #8a4abb; /* rgb */ color: rgb(138, 74, 187); /* oklch */ color: oklch(53.8% 0.175 307.7);
Tailwind
colors: {
custom: {
50: '#af80d0',
500: '#8a4abb',
950: '#000000',
},
}SCSS
$custom: #8a4abb; $custom-light: #af80d0; $custom-dark: #000000;
JSON
{
"hex": "#8a4abb",
"rgb": {
"r": 138,
"g": 74,
"b": 187
},
"hsl": {
"h": 273.982,
"s": 45.382,
"l": 51.176
},
"oklch": {
"l": 0.53826,
"c": 0.1753,
"h": 307.7
},
"luminance": 0.13889
}Semantic roles & 50–950 ramp
primary
#8A4ABB
secondary
#ADC997
accent
#D5538B
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A14
muted
#807C82