#8B42BB#8B42BB
#8B42BB is a mid, vivid violet. Relative luminance 0.130; OKLCH L 52.9% C 0.187 H 309.1°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).
Color values
| HEX | #8B42BB |
|---|---|
| RGB | rgb(139, 66, 187) |
| HSL | hsl(276, 48%, 50%) |
| HSV | hsv(276, 65%, 73%) |
| CMYK | cmyk(25.7%, 64.7%, 0%, 26.7%) |
| CIE-LAB | lab(42.72, 51.83, -51.36) |
| CIE-LCH | lch(42.72, 72.97, 315.26°) |
| OKLab | oklab(52.88% 0.1181 -0.1451) |
| OKLCH | oklch(52.88% 0.187 309.1) |
| XYZ | xyz(21.5635, 12.9736, 48.3723) |
| Luminance | 0.1297 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purply
#983FB2
ΔE00 3.40
Darkorchid
#9932CC
ΔE00 3.62
Royal Purple
#7851A9
ΔE00 5.64
Blueviolet
#8A2BE2
ΔE00 6.31
Darkviolet
#9400D3
ΔE00 6.87
Barney
#AC1DB8
ΔE00 6.88
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8B42BB #72BB42
analogous
#4E42BB #8B42BB #BB42AF
triadic
#8B42BB #BB8B42 #42BB8B
tetradic
#8B42BB #BB4E42 #72BB42 #42AFBB
square
#8B42BB #BB4E42 #72BB42 #42AFBB
split-complementary
#8B42BB #AFBB42 #42BB4E
monochromatic
#482261 #69328E #8B42BB #A76ECC #C29CDC
Accessibility & contrast
On white
5.84
#8B42BB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.59
#8B42BB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8B42BB
5.84:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8B42BB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8B42BB | 1.00 | 5.84 | 3.59 | 5.84 |
| #FFFFFF | 5.84 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.84 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0062BF
Deuteranopia (green-blind)
#2F66B8
Tritanopia (blue-blind)
#845B79
Achromatopsia (no color)
#656565
Design tokens & code
CSS
--color: #8b42bb; /* rgb */ color: rgb(139, 66, 187); /* oklch */ color: oklch(52.9% 0.187 309.1);
Tailwind
colors: {
custom: {
50: '#b17bd0',
500: '#8b42bb',
950: '#000000',
},
}SCSS
$custom: #8b42bb; $custom-light: #b17bd0; $custom-dark: #000000;
JSON
{
"hex": "#8b42bb",
"rgb": {
"r": 139,
"g": 66,
"b": 187
},
"hsl": {
"h": 276.198,
"s": 47.826,
"l": 49.608
},
"oklch": {
"l": 0.52876,
"c": 0.18704,
"h": 309.1
},
"luminance": 0.12973
}Semantic roles & 50–950 ramp
primary
#8B42BB
secondary
#A7C891
accent
#D75086
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A14
muted
#807C82