#8A4EC6#8A4EC6
#8A4EC6 is a mid, vivid violet. Relative luminance 0.149; OKLCH L 55.1% C 0.182 H 304.1°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).
Color values
| HEX | #8A4EC6 |
|---|---|
| RGB | rgb(138, 78, 198) |
| HSL | hsl(270, 51%, 54%) |
| HSV | hsv(270, 61%, 78%) |
| CMYK | cmyk(30.3%, 60.6%, 0%, 22.4%) |
| CIE-LAB | lab(45.54, 48.11, -53.24) |
| CIE-LCH | lch(45.54, 71.76, 312.10°) |
| OKLab | oklab(55.11% 0.1019 -0.1507) |
| OKLCH | oklch(55.11% 0.182 304.1) |
| XYZ | xyz(23.3964, 14.9293, 55.0642) |
| Luminance | 0.1493 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 5.27
Darkorchid
#9932CC
ΔE00 5.33
Deep Lavender
#8D5EB7
ΔE00 5.38
Royal Purple
#7851A9
ΔE00 5.50
Purply
#983FB2
ΔE00 5.72
Amethyst
#9B5FC0
ΔE00 6.42
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A4EC6 #8AC64E
analogous
#4E4EC6 #8A4EC6 #C64EC6
triadic
#8A4EC6 #C68A4E #4EC68A
tetradic
#8A4EC6 #C64E4E #8AC64E #4EC6C6
square
#8A4EC6 #C64E4E #8AC64E #4EC6C6
split-complementary
#8A4EC6 #C6C64E #4EC64E
monochromatic
#4D2574 #6B34A2 #8A4EC6 #A97CD5 #C7ABE4
Accessibility & contrast
On white
5.27
#8A4EC6 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.99
#8A4EC6 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A4EC6
5.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A4EC6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A4EC6 | 1.00 | 5.27 | 3.99 | 5.27 |
| #FFFFFF | 5.27 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.99 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.27 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0B6ACA
Deuteranopia (green-blind)
#316CC3
Tritanopia (blue-blind)
#7F6783
Achromatopsia (no color)
#6C6C6C
Design tokens & code
CSS
--color: #8a4ec6; /* rgb */ color: rgb(138, 78, 198); /* oklch */ color: oklch(55.1% 0.182 304.1);
Tailwind
colors: {
custom: {
50: '#b082d8',
500: '#8a4ec6',
950: '#000000',
},
}SCSS
$custom: #8a4ec6; $custom-light: #b082d8; $custom-dark: #000000;
JSON
{
"hex": "#8a4ec6",
"rgb": {
"r": 138,
"g": 78,
"b": 198
},
"hsl": {
"h": 270,
"s": 51.282,
"l": 54.118
},
"oklch": {
"l": 0.55112,
"c": 0.1819,
"h": 304.1
},
"luminance": 0.14929
}Semantic roles & 50–950 ramp
primary
#8A4EC6
secondary
#B8D19E
accent
#DB4D94
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110B14
muted
#807C83