#8C40BF#8C40BF
#8C40BF is a mid, vivid violet. Relative luminance 0.130; OKLCH L 53.0% C 0.194 H 308.7°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).
Color values
| HEX | #8C40BF |
|---|---|
| RGB | rgb(140, 64, 191) |
| HSL | hsl(276, 50%, 50%) |
| HSV | hsv(276, 66%, 75%) |
| CMYK | cmyk(26.7%, 66.5%, 0%, 25.1%) |
| CIE-LAB | lab(42.77, 53.91, -53.62) |
| CIE-LCH | lch(42.77, 76.04, 315.16°) |
| OKLab | oklab(53.02% 0.1214 -0.1516) |
| OKLCH | oklch(53.02% 0.194 308.7) |
| XYZ | xyz(22.0507, 13.0042, 50.6285) |
| Luminance | 0.1300 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 3.02
Purply
#983FB2
ΔE00 3.71
Blueviolet
#8A2BE2
ΔE00 5.62
Royal Purple
#7851A9
ΔE00 6.20
Darkviolet
#9400D3
ΔE00 6.29
Barney
#AC1DB8
ΔE00 6.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8C40BF #73BF40
analogous
#4D40BF #8C40BF #BF40B2
triadic
#8C40BF #BF8C40 #40BF8C
tetradic
#8C40BF #BF4D40 #73BF40 #40B2BF
square
#8C40BF #BF4D40 #73BF40 #40B2BF
split-complementary
#8C40BF #B2BF40 #40BF4D
monochromatic
#492163 #6A3191 #8C40BF #A86ECE #C39CDE
Accessibility & contrast
On white
5.83
#8C40BF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.60
#8C40BF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8C40BF
5.83:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8C40BF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8C40BF | 1.00 | 5.83 | 3.60 | 5.83 |
| #FFFFFF | 5.83 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.83 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0062C3
Deuteranopia (green-blind)
#2866BC
Tritanopia (blue-blind)
#845B7A
Achromatopsia (no color)
#656565
Design tokens & code
CSS
--color: #8c40bf; /* rgb */ color: rgb(140, 64, 191); /* oklch */ color: oklch(53.0% 0.194 308.7);
Tailwind
colors: {
custom: {
50: '#b27ad3',
500: '#8c40bf',
950: '#000000',
},
}SCSS
$custom: #8c40bf; $custom-light: #b27ad3; $custom-dark: #000000;
JSON
{
"hex": "#8c40bf",
"rgb": {
"r": 140,
"g": 64,
"b": 191
},
"hsl": {
"h": 275.906,
"s": 49.804,
"l": 50
},
"oklch": {
"l": 0.5302,
"c": 0.19425,
"h": 308.7
},
"luminance": 0.13004
}Semantic roles & 50–950 ramp
primary
#8C40BF
secondary
#A8CA91
accent
#D94E86
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A14
muted
#807C83