#8A4EC5#8A4EC5
#8A4EC5 is a mid, vivid violet. Relative luminance 0.149; OKLCH L 55.0% C 0.181 H 304.3°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).
Color values
| HEX | #8A4EC5 |
|---|---|
| RGB | rgb(138, 78, 197) |
| HSL | hsl(270, 51%, 54%) |
| HSV | hsv(270, 60%, 77%) |
| CMYK | cmyk(29.9%, 60.4%, 0%, 22.7%) |
| CIE-LAB | lab(45.47, 47.87, -52.77) |
| CIE-LCH | lch(45.47, 71.24, 312.21°) |
| OKLab | oklab(55.05% 0.102 -0.1493) |
| OKLCH | oklch(55.05% 0.181 304.3) |
| XYZ | xyz(23.2814, 14.8834, 54.4588) |
| Luminance | 0.1488 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lavender
#8D5EB7
ΔE00 5.30
Darkorchid
#9932CC
ΔE00 5.33
Royal Purple
#7851A9
ΔE00 5.39
Purpley
#8756E4
ΔE00 5.42
Purply
#983FB2
ΔE00 5.61
Amethyst
#9B5FC0
ΔE00 6.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A4EC5 #89C54E
analogous
#4F4EC5 #8A4EC5 #C54EC5
triadic
#8A4EC5 #C58A4E #4EC58A
tetradic
#8A4EC5 #C54F4E #89C54E #4EC5C5
square
#8A4EC5 #C54F4E #89C54E #4EC5C5
split-complementary
#8A4EC5 #C5C54E #4EC54F
monochromatic
#4D2673 #6B35A1 #8A4EC5 #A87CD4 #C7AAE3
Accessibility & contrast
On white
5.28
#8A4EC5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.98
#8A4EC5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A4EC5
5.28:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A4EC5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A4EC5 | 1.00 | 5.28 | 3.98 | 5.28 |
| #FFFFFF | 5.28 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.98 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.28 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0E6AC9
Deuteranopia (green-blind)
#326CC2
Tritanopia (blue-blind)
#7F6682
Achromatopsia (no color)
#6C6C6C
Design tokens & code
CSS
--color: #8a4ec5; /* rgb */ color: rgb(138, 78, 197); /* oklch */ color: oklch(55.0% 0.181 304.3);
Tailwind
colors: {
custom: {
50: '#b082d7',
500: '#8a4ec5',
950: '#000000',
},
}SCSS
$custom: #8a4ec5; $custom-light: #b082d7; $custom-dark: #000000;
JSON
{
"hex": "#8a4ec5",
"rgb": {
"r": 138,
"g": 78,
"b": 197
},
"hsl": {
"h": 270.252,
"s": 50.638,
"l": 53.922
},
"oklch": {
"l": 0.55046,
"c": 0.18076,
"h": 304.3
},
"luminance": 0.14883
}Semantic roles & 50–950 ramp
primary
#8A4EC5
secondary
#B7D19E
accent
#DA4E93
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110B14
muted
#807C83