#8B40BF#8B40BF
#8B40BF is a mid, vivid violet. Relative luminance 0.129; OKLCH L 52.9% C 0.194 H 308.3°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).
Color values
| HEX | #8B40BF |
|---|---|
| RGB | rgb(139, 64, 191) |
| HSL | hsl(275, 50%, 50%) |
| HSV | hsv(275, 66%, 75%) |
| CMYK | cmyk(27.2%, 66.5%, 0%, 25.1%) |
| CIE-LAB | lab(42.64, 53.70, -53.83) |
| CIE-LCH | lch(42.64, 76.03, 314.93°) |
| OKLab | oklab(52.9% 0.1201 -0.1523) |
| OKLCH | oklch(52.9% 0.194 308.3) |
| XYZ | xyz(21.8829, 12.9177, 50.6207) |
| Luminance | 0.1292 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 3.12
Purply
#983FB2
ΔE00 3.87
Blueviolet
#8A2BE2
ΔE00 5.56
Royal Purple
#7851A9
ΔE00 6.13
Darkviolet
#9400D3
ΔE00 6.27
Violet (survey)
#9A0EEA
ΔE00 6.80
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8B40BF #74BF40
analogous
#4B40BF #8B40BF #BF40B4
triadic
#8B40BF #BF8B40 #40BF8B
tetradic
#8B40BF #BF4B40 #74BF40 #40B4BF
square
#8B40BF #BF4B40 #74BF40 #40B4BF
split-complementary
#8B40BF #B4BF40 #40BF4B
monochromatic
#482163 #6A3191 #8B40BF #A76ECE #C39CDE
Accessibility & contrast
On white
5.86
#8B40BF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.58
#8B40BF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8B40BF
5.86:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8B40BF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8B40BF | 1.00 | 5.86 | 3.58 | 5.86 |
| #FFFFFF | 5.86 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.86 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0062C3
Deuteranopia (green-blind)
#2765BC
Tritanopia (blue-blind)
#835B7A
Achromatopsia (no color)
#656565
Design tokens & code
CSS
--color: #8b40bf; /* rgb */ color: rgb(139, 64, 191); /* oklch */ color: oklch(52.9% 0.194 308.3);
Tailwind
colors: {
custom: {
50: '#b17ad3',
500: '#8b40bf',
950: '#000000',
},
}SCSS
$custom: #8b40bf; $custom-light: #b17ad3; $custom-dark: #000000;
JSON
{
"hex": "#8b40bf",
"rgb": {
"r": 139,
"g": 64,
"b": 191
},
"hsl": {
"h": 275.433,
"s": 49.804,
"l": 50
},
"oklch": {
"l": 0.52899,
"c": 0.19396,
"h": 308.3
},
"luminance": 0.12917
}Semantic roles & 50–950 ramp
primary
#8B40BF
secondary
#A8CA91
accent
#D94E87
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A14
muted
#807C83