#8E40BF#8E40BF
#8E40BF is a mid, vivid violet. Relative luminance 0.132; OKLCH L 53.3% C 0.195 H 309.5°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).
Color values
| HEX | #8E40BF |
|---|---|
| RGB | rgb(142, 64, 191) |
| HSL | hsl(277, 50%, 50%) |
| HSV | hsv(277, 66%, 75%) |
| CMYK | cmyk(25.7%, 66.5%, 0%, 25.1%) |
| CIE-LAB | lab(43.03, 54.35, -53.18) |
| CIE-LCH | lch(43.03, 76.04, 315.62°) |
| OKLab | oklab(53.27% 0.124 -0.1503) |
| OKLCH | oklch(53.27% 0.195 309.5) |
| XYZ | xyz(22.3908, 13.1796, 50.6445) |
| Luminance | 0.1318 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 2.86
Purply
#983FB2
ΔE00 3.39
Blueviolet
#8A2BE2
ΔE00 5.77
Darkviolet
#9400D3
ΔE00 6.36
Royal Purple
#7851A9
ΔE00 6.36
Barney
#AC1DB8
ΔE00 6.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8E40BF #71BF40
analogous
#4E40BF #8E40BF #BF40B1
triadic
#8E40BF #BF8E40 #40BF8E
tetradic
#8E40BF #BF4E40 #71BF40 #40B1BF
square
#8E40BF #BF4E40 #71BF40 #40B1BF
split-complementary
#8E40BF #B1BF40 #40BF4E
monochromatic
#4A2163 #6C3191 #8E40BF #A96ECE #C49CDE
Accessibility & contrast
On white
5.78
#8E40BF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.64
#8E40BF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8E40BF
5.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8E40BF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8E40BF | 1.00 | 5.78 | 3.64 | 5.78 |
| #FFFFFF | 5.78 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.78 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0062C3
Deuteranopia (green-blind)
#2C67BC
Tritanopia (blue-blind)
#875A7A
Achromatopsia (no color)
#666666
Design tokens & code
CSS
--color: #8e40bf; /* rgb */ color: rgb(142, 64, 191); /* oklch */ color: oklch(53.3% 0.195 309.5);
Tailwind
colors: {
custom: {
50: '#b37ad3',
500: '#8e40bf',
950: '#000000',
},
}SCSS
$custom: #8e40bf; $custom-light: #b37ad3; $custom-dark: #000000;
JSON
{
"hex": "#8e40bf",
"rgb": {
"r": 142,
"g": 64,
"b": 191
},
"hsl": {
"h": 276.85,
"s": 49.804,
"l": 50
},
"oklch": {
"l": 0.53266,
"c": 0.19486,
"h": 309.5
},
"luminance": 0.13179
}Semantic roles & 50–950 ramp
primary
#8E40BF
secondary
#A7CA91
accent
#D94E84
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A14
muted
#807C83