#8A4EB8#8A4EB8
#8A4EB8 is a mid, vivid violet. Relative luminance 0.143; OKLCH L 54.2% C 0.166 H 307.9°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).
Color values
| HEX | #8A4EB8 |
|---|---|
| RGB | rgb(138, 78, 184) |
| HSL | hsl(274, 43%, 51%) |
| HSV | hsv(274, 58%, 72%) |
| CMYK | cmyk(25%, 57.6%, 0%, 27.8%) |
| CIE-LAB | lab(44.68, 44.78, -46.48) |
| CIE-LCH | lch(44.68, 64.54, 313.93°) |
| OKLab | oklab(54.21% 0.102 -0.1308) |
| OKLCH | oklch(54.21% 0.166 307.9) |
| XYZ | xyz(21.8556, 14.3130, 46.9494) |
| Luminance | 0.1431 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 4.14
Purply
#983FB2
ΔE00 4.33
Deep Lavender
#8D5EB7
ΔE00 4.60
Darkorchid
#9932CC
ΔE00 5.83
Amethyst
#9B5FC0
ΔE00 6.12
Medium Purple
#9E43A2
ΔE00 6.94
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A4EB8 #7CB84E
analogous
#554EB8 #8A4EB8 #B84EB1
triadic
#8A4EB8 #B88A4E #4EB88A
tetradic
#8A4EB8 #B8554E #7CB84E #4EB1B8
square
#8A4EB8 #B8554E #7CB84E #4EB1B8
split-complementary
#8A4EB8 #B1B84E #4EB855
monochromatic
#4A2864 #6A398F #8A4EB8 #A77ACA #C4A5DB
Accessibility & contrast
On white
5.44
#8A4EB8 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.86
#8A4EB8 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A4EB8
5.44:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A4EB8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A4EB8 | 1.00 | 5.44 | 3.86 | 5.44 |
| #FFFFFF | 5.44 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.86 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.44 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2767BB
Deuteranopia (green-blind)
#3F6AB5
Tritanopia (blue-blind)
#83627B
Achromatopsia (no color)
#6A6A6A
Design tokens & code
CSS
--color: #8a4eb8; /* rgb */ color: rgb(138, 78, 184); /* oklch */ color: oklch(54.2% 0.166 307.9);
Tailwind
colors: {
custom: {
50: '#af82ce',
500: '#8a4eb8',
950: '#000000',
},
}SCSS
$custom: #8a4eb8; $custom-light: #af82ce; $custom-dark: #000000;
JSON
{
"hex": "#8a4eb8",
"rgb": {
"r": 138,
"g": 78,
"b": 184
},
"hsl": {
"h": 273.962,
"s": 42.742,
"l": 51.373
},
"oklch": {
"l": 0.5421,
"c": 0.16587,
"h": 307.9
},
"luminance": 0.14313
}Semantic roles & 50–950 ramp
primary
#8A4EB8
secondary
#AEC89A
accent
#D3558C
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#110B14
muted
#807C82