#9E42EB#9E42EB
#9E42EB is a mid, highly saturated violet. Relative luminance 0.172; OKLCH L 58.5% C 0.241 H 304.7°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).
Color values
| HEX | #9E42EB |
|---|---|
| RGB | rgb(158, 66, 235) |
| HSL | hsl(273, 81%, 59%) |
| HSV | hsv(273, 72%, 92%) |
| CMYK | cmyk(32.8%, 71.9%, 0%, 7.8%) |
| CIE-LAB | lab(48.47, 66.45, -69.52) |
| CIE-LCH | lch(48.47, 96.17, 313.71°) |
| OKLab | oklab(58.54% 0.1372 -0.1978) |
| OKLCH | oklch(58.54% 0.241 304.7) |
| XYZ | xyz(31.0408, 17.1638, 80.2588) |
| Luminance | 0.1716 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Electric Purple
#AA23FF
ΔE00 3.53
Lightish Purple
#A552E6
ΔE00 3.72
Bright Violet
#AD0AFD
ΔE00 4.46
Purpley
#8756E4
ΔE00 5.00
Neon Purple
#BC13FE
ΔE00 5.03
Bright Purple
#BE03FD
ΔE00 5.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9E42EB #8FEB42
analogous
#4A42EB #9E42EB #EB42E3
triadic
#9E42EB #EB9E42 #42EB9E
tetradic
#9E42EB #EB4A42 #8FEB42 #42E3EB
square
#9E42EB #EB4A42 #8FEB42 #42E3EB
split-complementary
#9E42EB #E3EB42 #42EB4A
monochromatic
#6011A2 #8117D9 #9E42EB #BA79F1 #D7B1F7
Accessibility & contrast
On white
4.74
#9E42EB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.43
#9E42EB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9E42EB
4.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9E42EB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9E42EB | 1.00 | 4.74 | 4.43 | 4.74 |
| #FFFFFF | 4.74 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.43 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.74 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0071F0
Deuteranopia (green-blind)
#0073E8
Tritanopia (blue-blind)
#8F6B93
Achromatopsia (no color)
#737373
Design tokens & code
CSS
--color: #9e42eb; /* rgb */ color: rgb(158, 66, 235); /* oklch */ color: oklch(58.5% 0.241 304.7);
Tailwind
colors: {
custom: {
50: '#c17ef2',
500: '#9e42eb',
950: '#000000',
},
}SCSS
$custom: #9e42eb; $custom-light: #c17ef2; $custom-dark: #000000;
JSON
{
"hex": "#9e42eb",
"rgb": {
"r": 158,
"g": 66,
"b": 235
},
"hsl": {
"h": 272.663,
"s": 80.861,
"l": 59.02
},
"oklch": {
"l": 0.58544,
"c": 0.24069,
"h": 304.7
},
"luminance": 0.17164
}Semantic roles & 50–950 ramp
primary
#9E42EB
secondary
#C1E6A3
accent
#F7318B
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130B17
muted
#827C85