#8E42BC#8E42BC
#8E42BC is a mid, vivid violet. Relative luminance 0.133; OKLCH L 53.3% C 0.189 H 310.2°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).
Color values
| HEX | #8E42BC |
|---|---|
| RGB | rgb(142, 66, 188) |
| HSL | hsl(277, 48%, 50%) |
| HSV | hsv(277, 65%, 74%) |
| CMYK | cmyk(24.5%, 64.9%, 0%, 26.3%) |
| CIE-LAB | lab(43.18, 52.74, -51.19) |
| CIE-LCH | lch(43.18, 73.50, 315.85°) |
| OKLab | oklab(53.31% 0.1219 -0.1445) |
| OKLCH | oklch(53.31% 0.189 310.2) |
| XYZ | xyz(22.1789, 13.2785, 48.9618) |
| Luminance | 0.1328 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purply
#983FB2
ΔE00 3.00
Darkorchid
#9932CC
ΔE00 3.35
Royal Purple
#7851A9
ΔE00 5.97
Blueviolet
#8A2BE2
ΔE00 6.39
Barney
#AC1DB8
ΔE00 6.48
Medium Purple
#9E43A2
ΔE00 6.72
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8E42BC #70BC42
analogous
#5142BC #8E42BC #BC42AD
triadic
#8E42BC #BC8E42 #42BC8E
tetradic
#8E42BC #BC5142 #70BC42 #42ADBC
square
#8E42BC #BC5142 #70BC42 #42ADBC
split-complementary
#8E42BC #ADBC42 #42BC51
monochromatic
#4A2261 #6C328F #8E42BC #A96FCC #C49CDC
Accessibility & contrast
On white
5.74
#8E42BC on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.66
#8E42BC on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8E42BC
5.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8E42BC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8E42BC | 1.00 | 5.74 | 3.66 | 5.74 |
| #FFFFFF | 5.74 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.66 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.74 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0063C0
Deuteranopia (green-blind)
#3267B9
Tritanopia (blue-blind)
#885B79
Achromatopsia (no color)
#666666
Design tokens & code
CSS
--color: #8e42bc; /* rgb */ color: rgb(142, 66, 188); /* oklch */ color: oklch(53.3% 0.189 310.2);
Tailwind
colors: {
custom: {
50: '#b37bd1',
500: '#8e42bc',
950: '#000000',
},
}SCSS
$custom: #8e42bc; $custom-light: #b37bd1; $custom-dark: #000000;
JSON
{
"hex": "#8e42bc",
"rgb": {
"r": 142,
"g": 66,
"b": 188
},
"hsl": {
"h": 277.377,
"s": 48.031,
"l": 49.804
},
"oklch": {
"l": 0.53309,
"c": 0.18905,
"h": 310.2
},
"luminance": 0.13278
}Semantic roles & 50–950 ramp
primary
#8E42BC
secondary
#A6C991
accent
#D85083
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A14
muted
#807C82