#8E42BB#8E42BB
#8E42BB is a mid, vivid violet. Relative luminance 0.132; OKLCH L 53.2% C 0.188 H 310.5°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).
Color values
| HEX | #8E42BB |
|---|---|
| RGB | rgb(142, 66, 187) |
| HSL | hsl(278, 48%, 50%) |
| HSV | hsv(278, 65%, 73%) |
| CMYK | cmyk(24.1%, 64.7%, 0%, 26.7%) |
| CIE-LAB | lab(43.12, 52.52, -50.71) |
| CIE-LCH | lch(43.12, 73.00, 316.00°) |
| OKLab | oklab(53.24% 0.122 -0.143) |
| OKLCH | oklch(53.24% 0.188 310.5) |
| XYZ | xyz(22.0715, 13.2355, 48.3961) |
| Luminance | 0.1323 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purply
#983FB2
ΔE00 2.88
Darkorchid
#9932CC
ΔE00 3.44
Royal Purple
#7851A9
ΔE00 5.93
Barney
#AC1DB8
ΔE00 6.43
Blueviolet
#8A2BE2
ΔE00 6.52
Medium Purple
#9E43A2
ΔE00 6.59
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8E42BB #6FBB42
analogous
#5242BB #8E42BB #BB42AC
triadic
#8E42BB #BB8E42 #42BB8E
tetradic
#8E42BB #BB5242 #6FBB42 #42ACBB
square
#8E42BB #BB5242 #6FBB42 #42ACBB
split-complementary
#8E42BB #ACBB42 #42BB52
monochromatic
#492261 #6C328E #8E42BB #A96ECC #C49CDC
Accessibility & contrast
On white
5.76
#8E42BB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.65
#8E42BB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8E42BB
5.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8E42BB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8E42BB | 1.00 | 5.76 | 3.65 | 5.76 |
| #FFFFFF | 5.76 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.76 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0062BF
Deuteranopia (green-blind)
#3367B8
Tritanopia (blue-blind)
#885A79
Achromatopsia (no color)
#666666
Design tokens & code
CSS
--color: #8e42bb; /* rgb */ color: rgb(142, 66, 187); /* oklch */ color: oklch(53.2% 0.188 310.5);
Tailwind
colors: {
custom: {
50: '#b37bd0',
500: '#8e42bb',
950: '#000000',
},
}SCSS
$custom: #8e42bb; $custom-light: #b37bd0; $custom-dark: #000000;
JSON
{
"hex": "#8e42bb",
"rgb": {
"r": 142,
"g": 66,
"b": 187
},
"hsl": {
"h": 277.686,
"s": 47.826,
"l": 49.608
},
"oklch": {
"l": 0.53243,
"c": 0.188,
"h": 310.5
},
"luminance": 0.13235
}Semantic roles & 50–950 ramp
primary
#8E42BB
secondary
#A5C891
accent
#D75083
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A14
muted
#807C82