#8A4EBB#8A4EBB
#8A4EBB is a mid, vivid violet. Relative luminance 0.144; OKLCH L 54.4% C 0.169 H 307.1°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).
Color values
| HEX | #8A4EBB |
|---|---|
| RGB | rgb(138, 78, 187) |
| HSL | hsl(273, 44%, 52%) |
| HSV | hsv(273, 58%, 73%) |
| CMYK | cmyk(26.2%, 58.3%, 0%, 26.7%) |
| CIE-LAB | lab(44.86, 45.48, -47.94) |
| CIE-LCH | lch(44.86, 66.08, 313.49°) |
| OKLab | oklab(54.4% 0.102 -0.1351) |
| OKLCH | oklch(54.4% 0.169 307.1) |
| XYZ | xyz(22.1734, 14.4402, 48.6232) |
| Luminance | 0.1444 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 4.36
Purply
#983FB2
ΔE00 4.57
Deep Lavender
#8D5EB7
ΔE00 4.69
Darkorchid
#9932CC
ΔE00 5.64
Amethyst
#9B5FC0
ΔE00 6.12
Purpley
#8756E4
ΔE00 7.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A4EBB #7FBB4E
analogous
#544EBB #8A4EBB #BB4EB5
triadic
#8A4EBB #BB8A4E #4EBB8A
tetradic
#8A4EBB #BB544E #7FBB4E #4EB5BB
square
#8A4EBB #BB544E #7FBB4E #4EB5BB
split-complementary
#8A4EBB #B5BB4E #4EBB54
monochromatic
#4B2867 #6A3993 #8A4EBB #A77ACC #C4A6DD
Accessibility & contrast
On white
5.40
#8A4EBB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.89
#8A4EBB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A4EBB
5.40:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A4EBB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A4EBB | 1.00 | 5.40 | 3.89 | 5.40 |
| #FFFFFF | 5.40 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.89 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.40 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2368BF
Deuteranopia (green-blind)
#3C6BB8
Tritanopia (blue-blind)
#82637D
Achromatopsia (no color)
#6A6A6A
Design tokens & code
CSS
--color: #8a4ebb; /* rgb */ color: rgb(138, 78, 187); /* oklch */ color: oklch(54.4% 0.169 307.1);
Tailwind
colors: {
custom: {
50: '#af82d0',
500: '#8a4ebb',
950: '#000000',
},
}SCSS
$custom: #8a4ebb; $custom-light: #af82d0; $custom-dark: #000000;
JSON
{
"hex": "#8a4ebb",
"rgb": {
"r": 138,
"g": 78,
"b": 187
},
"hsl": {
"h": 273.028,
"s": 44.49,
"l": 51.961
},
"oklch": {
"l": 0.54399,
"c": 0.16932,
"h": 307.1
},
"luminance": 0.1444
}Semantic roles & 50–950 ramp
primary
#8A4EBB
secondary
#B0CA9B
accent
#D4548D
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#110B14
muted
#807C82