#8B40BB#8B40BB
#8B40BB is a mid, vivid violet. Relative luminance 0.127; OKLCH L 52.6% C 0.190 H 309.4°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).
Color values
| HEX | #8B40BB |
|---|---|
| RGB | rgb(139, 64, 187) |
| HSL | hsl(277, 49%, 49%) |
| HSV | hsv(277, 66%, 73%) |
| CMYK | cmyk(25.7%, 65.8%, 0%, 26.7%) |
| CIE-LAB | lab(42.38, 52.79, -51.92) |
| CIE-LCH | lch(42.38, 74.05, 315.48°) |
| OKLab | oklab(52.63% 0.1204 -0.1467) |
| OKLCH | oklch(52.63% 0.19 309.4) |
| XYZ | xyz(21.4487, 12.7440, 48.3340) |
| Luminance | 0.1274 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purply
#983FB2
ΔE00 3.41
Darkorchid
#9932CC
ΔE00 3.42
Royal Purple
#7851A9
ΔE00 5.91
Blueviolet
#8A2BE2
ΔE00 6.11
Darkviolet
#9400D3
ΔE00 6.50
Barney
#AC1DB8
ΔE00 6.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8B40BB #70BB40
analogous
#4D40BB #8B40BB #BB40AE
triadic
#8B40BB #BB8B40 #40BB8B
tetradic
#8B40BB #BB4D40 #70BB40 #40AEBB
square
#8B40BB #BB4D40 #70BB40 #40AEBB
split-complementary
#8B40BB #AEBB40 #40BB4D
monochromatic
#472160 #69308D #8B40BB #A76CCD #C299DC
Accessibility & contrast
On white
5.92
#8B40BB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.55
#8B40BB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8B40BB
5.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8B40BB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8B40BB | 1.00 | 5.92 | 3.55 | 5.92 |
| #FFFFFF | 5.92 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.92 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0061BF
Deuteranopia (green-blind)
#2C65B8
Tritanopia (blue-blind)
#845978
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #8b40bb; /* rgb */ color: rgb(139, 64, 187); /* oklch */ color: oklch(52.6% 0.190 309.4);
Tailwind
colors: {
custom: {
50: '#b17ad0',
500: '#8b40bb',
950: '#000000',
},
}SCSS
$custom: #8b40bb; $custom-light: #b17ad0; $custom-dark: #000000;
JSON
{
"hex": "#8b40bb",
"rgb": {
"r": 139,
"g": 64,
"b": 187
},
"hsl": {
"h": 276.585,
"s": 49.004,
"l": 49.216
},
"oklch": {
"l": 0.52625,
"c": 0.18978,
"h": 309.4
},
"luminance": 0.12744
}Semantic roles & 50–950 ramp
primary
#8B40BB
secondary
#A5C88F
accent
#D94F85
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110914
muted
#807B82