#8E42D2#8E42D2
#8E42D2 is a mid, highly saturated violet. Relative luminance 0.143; OKLCH L 54.8% C 0.212 H 304.4°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).
Color values
| HEX | #8E42D2 |
|---|---|
| RGB | rgb(142, 66, 210) |
| HSL | hsl(272, 62%, 54%) |
| HSV | hsv(272, 69%, 82%) |
| CMYK | cmyk(32.4%, 68.6%, 0%, 17.6%) |
| CIE-LAB | lab(44.66, 57.75, -61.55) |
| CIE-LCH | lch(44.66, 84.40, 313.17°) |
| OKLab | oklab(54.84% 0.1198 -0.1749) |
| OKLCH | oklch(54.84% 0.212 304.4) |
| XYZ | xyz(24.7338, 14.3005, 62.4175) |
| Luminance | 0.1430 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 3.25
Blueviolet
#8A2BE2
ΔE00 4.14
Violet (survey)
#9A0EEA
ΔE00 5.47
Purpley
#8756E4
ΔE00 5.66
Purply
#983FB2
ΔE00 5.99
Bluish Purple
#703BE7
ΔE00 6.09
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8E42D2 #86D242
analogous
#4642D2 #8E42D2 #D242CE
triadic
#8E42D2 #D28E42 #42D28E
tetradic
#8E42D2 #D24642 #86D242 #42CED2
square
#8E42D2 #D24642 #86D242 #42CED2
split-complementary
#8E42D2 #CED242 #42D246
monochromatic
#4F1E7C #6F29AD #8E42D2 #AC73DE #C9A5EA
Accessibility & contrast
On white
5.44
#8E42D2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.86
#8E42D2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8E42D2
5.44:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8E42D2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8E42D2 | 1.00 | 5.44 | 3.86 | 5.44 |
| #FFFFFF | 5.44 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.86 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.44 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0068D6
Deuteranopia (green-blind)
#006ACF
Tritanopia (blue-blind)
#816385
Achromatopsia (no color)
#6A6A6A
Design tokens & code
CSS
--color: #8e42d2; /* rgb */ color: rgb(142, 66, 210); /* oklch */ color: oklch(54.8% 0.212 304.4);
Tailwind
colors: {
custom: {
50: '#b47ce1',
500: '#8e42d2',
950: '#000000',
},
}SCSS
$custom: #8e42d2; $custom-light: #b47ce1; $custom-dark: #000000;
JSON
{
"hex": "#8e42d2",
"rgb": {
"r": 142,
"g": 66,
"b": 210
},
"hsl": {
"h": 271.667,
"s": 61.538,
"l": 54.118
},
"oklch": {
"l": 0.54842,
"c": 0.21199,
"h": 304.4
},
"luminance": 0.143
}Semantic roles & 50–950 ramp
primary
#8E42D2
secondary
#B6D799
accent
#E5438F
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83