#8A4EC1#8A4EC1
#8A4EC1 is a mid, vivid violet. Relative luminance 0.147; OKLCH L 54.8% C 0.176 H 305.4°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).
Color values
| HEX | #8A4EC1 |
|---|---|
| RGB | rgb(138, 78, 193) |
| HSL | hsl(271, 48%, 53%) |
| HSV | hsv(271, 60%, 76%) |
| CMYK | cmyk(28.5%, 59.6%, 0%, 24.3%) |
| CIE-LAB | lab(45.22, 46.91, -50.85) |
| CIE-LCH | lch(45.22, 69.18, 312.69°) |
| OKLab | oklab(54.78% 0.102 -0.1436) |
| OKLCH | oklch(54.78% 0.176 305.4) |
| XYZ | xyz(22.8292, 14.7025, 52.0769) |
| Luminance | 0.1470 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 4.94
Deep Lavender
#8D5EB7
ΔE00 5.01
Purply
#983FB2
ΔE00 5.16
Darkorchid
#9932CC
ΔE00 5.39
Purpley
#8756E4
ΔE00 6.04
Amethyst
#9B5FC0
ΔE00 6.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A4EC1 #85C14E
analogous
#504EC1 #8A4EC1 #C14EBF
triadic
#8A4EC1 #C18A4E #4EC18A
tetradic
#8A4EC1 #C1504E #85C14E #4EBFC1
square
#8A4EC1 #C1504E #85C14E #4EBFC1
split-complementary
#8A4EC1 #BFC14E #4EC150
monochromatic
#4C276E #6B369B #8A4EC1 #A87BD1 #C6A9E1
Accessibility & contrast
On white
5.33
#8A4EC1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.94
#8A4EC1 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A4EC1
5.33:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A4EC1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A4EC1 | 1.00 | 5.33 | 3.94 | 5.33 |
| #FFFFFF | 5.33 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.94 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.33 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1969C5
Deuteranopia (green-blind)
#366BBE
Tritanopia (blue-blind)
#816580
Achromatopsia (no color)
#6B6B6B
Design tokens & code
CSS
--color: #8a4ec1; /* rgb */ color: rgb(138, 78, 193); /* oklch */ color: oklch(54.8% 0.176 305.4);
Tailwind
colors: {
custom: {
50: '#b082d4',
500: '#8a4ec1',
950: '#000000',
},
}SCSS
$custom: #8a4ec1; $custom-light: #b082d4; $custom-dark: #000000;
JSON
{
"hex": "#8a4ec1",
"rgb": {
"r": 138,
"g": 78,
"b": 193
},
"hsl": {
"h": 271.304,
"s": 48.117,
"l": 53.137
},
"oklch": {
"l": 0.54784,
"c": 0.17619,
"h": 305.4
},
"luminance": 0.14702
}Semantic roles & 50–950 ramp
primary
#8A4EC1
secondary
#B4CE9D
accent
#D85091
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110B14
muted
#807C83