#8A4EC4#8A4EC4
#8A4EC4 is a mid, vivid violet. Relative luminance 0.148; OKLCH L 55.0% C 0.180 H 304.6°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).
Color values
| HEX | #8A4EC4 |
|---|---|
| RGB | rgb(138, 78, 196) |
| HSL | hsl(271, 50%, 54%) |
| HSV | hsv(271, 60%, 77%) |
| CMYK | cmyk(29.6%, 60.2%, 0%, 23.1%) |
| CIE-LAB | lab(45.41, 47.63, -52.29) |
| CIE-LCH | lch(45.41, 70.73, 312.33°) |
| OKLab | oklab(54.98% 0.102 -0.1479) |
| OKLCH | oklch(54.98% 0.18 304.6) |
| XYZ | xyz(23.1672, 14.8377, 53.8573) |
| Luminance | 0.1484 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lavender
#8D5EB7
ΔE00 5.22
Royal Purple
#7851A9
ΔE00 5.27
Darkorchid
#9932CC
ΔE00 5.34
Purply
#983FB2
ΔE00 5.49
Purpley
#8756E4
ΔE00 5.58
Amethyst
#9B5FC0
ΔE00 6.34
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A4EC4 #88C44E
analogous
#4F4EC4 #8A4EC4 #C44EC3
triadic
#8A4EC4 #C48A4E #4EC48A
tetradic
#8A4EC4 #C44F4E #88C44E #4EC3C4
square
#8A4EC4 #C44F4E #88C44E #4EC3C4
split-complementary
#8A4EC4 #C3C44E #4EC44F
monochromatic
#4C2672 #6B35A0 #8A4EC4 #A87CD3 #C7AAE3
Accessibility & contrast
On white
5.29
#8A4EC4 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.97
#8A4EC4 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A4EC4
5.29:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A4EC4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A4EC4 | 1.00 | 5.29 | 3.97 | 5.29 |
| #FFFFFF | 5.29 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.97 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.29 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#116AC8
Deuteranopia (green-blind)
#336CC1
Tritanopia (blue-blind)
#806682
Achromatopsia (no color)
#6B6B6B
Design tokens & code
CSS
--color: #8a4ec4; /* rgb */ color: rgb(138, 78, 196); /* oklch */ color: oklch(55.0% 0.180 304.6);
Tailwind
colors: {
custom: {
50: '#b082d6',
500: '#8a4ec4',
950: '#000000',
},
}SCSS
$custom: #8a4ec4; $custom-light: #b082d6; $custom-dark: #000000;
JSON
{
"hex": "#8a4ec4",
"rgb": {
"r": 138,
"g": 78,
"b": 196
},
"hsl": {
"h": 270.508,
"s": 50,
"l": 53.725
},
"oklch": {
"l": 0.5498,
"c": 0.17962,
"h": 304.6
},
"luminance": 0.14838
}Semantic roles & 50–950 ramp
primary
#8A4EC4
secondary
#B6D09E
accent
#DA4E93
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110B14
muted
#807C83