#8B42BF#8B42BF
#8B42BF is a mid, vivid violet. Relative luminance 0.131; OKLCH L 53.1% C 0.191 H 308.0°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).
Color values
| HEX | #8B42BF |
|---|---|
| RGB | rgb(139, 66, 191) |
| HSL | hsl(275, 49%, 50%) |
| HSV | hsv(275, 65%, 75%) |
| CMYK | cmyk(27.2%, 65.4%, 0%, 25.1%) |
| CIE-LAB | lab(42.98, 52.74, -53.28) |
| CIE-LCH | lch(42.98, 74.97, 314.71°) |
| OKLab | oklab(53.15% 0.1178 -0.1507) |
| OKLCH | oklch(53.15% 0.191 308) |
| XYZ | xyz(21.9977, 13.1473, 50.6590) |
| Luminance | 0.1315 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 3.33
Purply
#983FB2
ΔE00 3.86
Blueviolet
#8A2BE2
ΔE00 5.77
Royal Purple
#7851A9
ΔE00 5.88
Darkviolet
#9400D3
ΔE00 6.65
Violet (survey)
#9A0EEA
ΔE00 7.03
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8B42BF #76BF42
analogous
#4C42BF #8B42BF #BF42B4
triadic
#8B42BF #BF8B42 #42BF8B
tetradic
#8B42BF #BF4C42 #76BF42 #42B4BF
square
#8B42BF #BF4C42 #76BF42 #42B4BF
split-complementary
#8B42BF #B4BF42 #42BF4C
monochromatic
#492265 #6A3292 #8B42BF #A770CE #C39DDE
Accessibility & contrast
On white
5.79
#8B42BF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.63
#8B42BF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8B42BF
5.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8B42BF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8B42BF | 1.00 | 5.79 | 3.63 | 5.79 |
| #FFFFFF | 5.79 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.79 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0063C3
Deuteranopia (green-blind)
#2A66BC
Tritanopia (blue-blind)
#835C7B
Achromatopsia (no color)
#656565
Design tokens & code
CSS
--color: #8b42bf; /* rgb */ color: rgb(139, 66, 191); /* oklch */ color: oklch(53.1% 0.191 308.0);
Tailwind
colors: {
custom: {
50: '#b17bd3',
500: '#8b42bf',
950: '#000000',
},
}SCSS
$custom: #8b42bf; $custom-light: #b17bd3; $custom-dark: #000000;
JSON
{
"hex": "#8b42bf",
"rgb": {
"r": 139,
"g": 66,
"b": 191
},
"hsl": {
"h": 275.04,
"s": 49.407,
"l": 50.392
},
"oklch": {
"l": 0.53147,
"c": 0.19128,
"h": 308
},
"luminance": 0.13147
}Semantic roles & 50–950 ramp
primary
#8B42BF
secondary
#AACA93
accent
#D94F88
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A14
muted
#807C83