#8D40BF#8D40BF
#8D40BF is a mid, vivid violet. Relative luminance 0.131; OKLCH L 53.1% C 0.195 H 309.1°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).
Color values
| HEX | #8D40BF |
|---|---|
| RGB | rgb(141, 64, 191) |
| HSL | hsl(276, 50%, 50%) |
| HSV | hsv(276, 66%, 75%) |
| CMYK | cmyk(26.2%, 66.5%, 0%, 25.1%) |
| CIE-LAB | lab(42.90, 54.13, -53.40) |
| CIE-LCH | lch(42.90, 76.04, 315.39°) |
| OKLab | oklab(53.14% 0.1227 -0.151) |
| OKLCH | oklch(53.14% 0.195 309.1) |
| XYZ | xyz(22.2200, 13.0915, 50.6365) |
| Luminance | 0.1309 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 2.93
Purply
#983FB2
ΔE00 3.55
Blueviolet
#8A2BE2
ΔE00 5.70
Royal Purple
#7851A9
ΔE00 6.28
Darkviolet
#9400D3
ΔE00 6.32
Barney
#AC1DB8
ΔE00 6.61
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8D40BF #72BF40
analogous
#4E40BF #8D40BF #BF40B1
triadic
#8D40BF #BF8D40 #40BF8D
tetradic
#8D40BF #BF4E40 #72BF40 #40B1BF
square
#8D40BF #BF4E40 #72BF40 #40B1BF
split-complementary
#8D40BF #B1BF40 #40BF4E
monochromatic
#492163 #6B3191 #8D40BF #A86ECE #C49CDE
Accessibility & contrast
On white
5.80
#8D40BF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.62
#8D40BF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8D40BF
5.80:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8D40BF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8D40BF | 1.00 | 5.80 | 3.62 | 5.80 |
| #FFFFFF | 5.80 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.80 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0062C3
Deuteranopia (green-blind)
#2A66BC
Tritanopia (blue-blind)
#865B7A
Achromatopsia (no color)
#656565
Design tokens & code
CSS
--color: #8d40bf; /* rgb */ color: rgb(141, 64, 191); /* oklch */ color: oklch(53.1% 0.195 309.1);
Tailwind
colors: {
custom: {
50: '#b27ad3',
500: '#8d40bf',
950: '#000000',
},
}SCSS
$custom: #8d40bf; $custom-light: #b27ad3; $custom-dark: #000000;
JSON
{
"hex": "#8d40bf",
"rgb": {
"r": 141,
"g": 64,
"b": 191
},
"hsl": {
"h": 276.378,
"s": 49.804,
"l": 50
},
"oklch": {
"l": 0.53143,
"c": 0.19454,
"h": 309.1
},
"luminance": 0.13091
}Semantic roles & 50–950 ramp
primary
#8D40BF
secondary
#A7CA91
accent
#D94E85
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A14
muted
#807C83