#8A4AB7#8A4AB7
#8A4AB7 is a mid, vivid violet. Relative luminance 0.137; OKLCH L 53.6% C 0.171 H 308.8°. Best body text is #FFFFFF at 5.61:1 contrast (WCAG AA passes).
Color values
| HEX | #8A4AB7 |
|---|---|
| RGB | rgb(138, 74, 183) |
| HSL | hsl(275, 43%, 50%) |
| HSV | hsv(275, 60%, 72%) |
| CMYK | cmyk(24.6%, 59.6%, 0%, 28.2%) |
| CIE-LAB | lab(43.83, 46.65, -47.25) |
| CIE-LCH | lch(43.83, 66.40, 314.64°) |
| OKLab | oklab(53.57% 0.1071 -0.1331) |
| OKLCH | oklch(53.57% 0.171 308.8) |
| XYZ | xyz(21.4756, 13.7201, 46.3075) |
| Luminance | 0.1372 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purply
#983FB2
ΔE00 3.67
Royal Purple
#7851A9
ΔE00 4.37
Darkorchid
#9932CC
ΔE00 5.16
Deep Lavender
#8D5EB7
ΔE00 5.57
Medium Purple
#9E43A2
ΔE00 6.64
Amethyst
#9B5FC0
ΔE00 6.96
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A4AB7 #77B74A
analogous
#534AB7 #8A4AB7 #B74AAE
triadic
#8A4AB7 #B78A4A #4AB78A
tetradic
#8A4AB7 #B7534A #77B74A #4AAEB7
square
#8A4AB7 #B7534A #77B74A #4AAEB7
split-complementary
#8A4AB7 #AEB74A #4AB753
monochromatic
#482660 #69388C #8A4AB7 #A676C8 #C3A2DA
Accessibility & contrast
On white
5.61
#8A4AB7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.74
#8A4AB7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A4AB7
5.61:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A4AB7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A4AB7 | 1.00 | 5.61 | 3.74 | 5.61 |
| #FFFFFF | 5.61 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.74 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.61 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1F65BA
Deuteranopia (green-blind)
#3B68B4
Tritanopia (blue-blind)
#845F79
Achromatopsia (no color)
#686868
Design tokens & code
CSS
--color: #8a4ab7; /* rgb */ color: rgb(138, 74, 183); /* oklch */ color: oklch(53.6% 0.171 308.8);
Tailwind
colors: {
custom: {
50: '#af80cd',
500: '#8a4ab7',
950: '#000000',
},
}SCSS
$custom: #8a4ab7; $custom-light: #af80cd; $custom-dark: #000000;
JSON
{
"hex": "#8a4ab7",
"rgb": {
"r": 138,
"g": 74,
"b": 183
},
"hsl": {
"h": 275.229,
"s": 43.083,
"l": 50.392
},
"oklch": {
"l": 0.5357,
"c": 0.17082,
"h": 308.8
},
"luminance": 0.1372
}Semantic roles & 50–950 ramp
primary
#8A4AB7
secondary
#AAC796
accent
#D35589
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A13
muted
#807C82