#8E40BA#8E40BA
#8E40BA is a mid, vivid violet. Relative luminance 0.130; OKLCH L 52.9% C 0.190 H 311.0°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).
Color values
| HEX | #8E40BA |
|---|---|
| RGB | rgb(142, 64, 186) |
| HSL | hsl(278, 49%, 49%) |
| HSV | hsv(278, 66%, 73%) |
| CMYK | cmyk(23.7%, 65.6%, 0%, 27.1%) |
| CIE-LAB | lab(42.71, 53.25, -50.78) |
| CIE-LCH | lch(42.71, 73.58, 316.36°) |
| OKLab | oklab(52.93% 0.1244 -0.1432) |
| OKLCH | oklch(52.93% 0.19 311) |
| XYZ | xyz(21.8500, 12.9632, 47.7960) |
| Luminance | 0.1296 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purply
#983FB2
ΔE00 2.77
Darkorchid
#9932CC
ΔE00 3.32
Royal Purple
#7851A9
ΔE00 6.13
Barney
#AC1DB8
ΔE00 6.18
Blueviolet
#8A2BE2
ΔE00 6.47
Medium Purple
#9E43A2
ΔE00 6.53
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8E40BA #6CBA40
analogous
#5140BA #8E40BA #BA40A9
triadic
#8E40BA #BA8E40 #40BA8E
tetradic
#8E40BA #BA5140 #6CBA40 #40A9BA
square
#8E40BA #BA5140 #6CBA40 #40A9BA
split-complementary
#8E40BA #A9BA40 #40BA51
monochromatic
#48215F #6B308C #8E40BA #A96BCC #C499DC
Accessibility & contrast
On white
5.85
#8E40BA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.59
#8E40BA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8E40BA
5.85:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8E40BA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8E40BA | 1.00 | 5.85 | 3.59 | 5.85 |
| #FFFFFF | 5.85 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.85 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0061BE
Deuteranopia (green-blind)
#3266B7
Tritanopia (blue-blind)
#885977
Achromatopsia (no color)
#656565
Design tokens & code
CSS
--color: #8e40ba; /* rgb */ color: rgb(142, 64, 186); /* oklch */ color: oklch(52.9% 0.190 311.0);
Tailwind
colors: {
custom: {
50: '#b37acf',
500: '#8e40ba',
950: '#000000',
},
}SCSS
$custom: #8e40ba; $custom-light: #b37acf; $custom-dark: #000000;
JSON
{
"hex": "#8e40ba",
"rgb": {
"r": 142,
"g": 64,
"b": 186
},
"hsl": {
"h": 278.361,
"s": 48.8,
"l": 49.02
},
"oklch": {
"l": 0.52928,
"c": 0.18971,
"h": 311
},
"luminance": 0.12963
}Semantic roles & 50–950 ramp
primary
#8E40BA
secondary
#A3C88E
accent
#D84F81
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A14
muted
#807C82