#9D42EB#9D42EB
#9D42EB is a mid, highly saturated violet. Relative luminance 0.171; OKLCH L 58.4% C 0.240 H 304.4°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).
Color values
| HEX | #9D42EB |
|---|---|
| RGB | rgb(157, 66, 235) |
| HSL | hsl(272, 81%, 59%) |
| HSV | hsv(272, 72%, 92%) |
| CMYK | cmyk(33.2%, 71.9%, 0%, 7.8%) |
| CIE-LAB | lab(48.34, 66.27, -69.73) |
| CIE-LCH | lch(48.34, 96.20, 313.55°) |
| OKLab | oklab(58.43% 0.1358 -0.1984) |
| OKLCH | oklch(58.43% 0.24 304.4) |
| XYZ | xyz(30.8448, 17.0628, 80.2496) |
| Luminance | 0.1706 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Electric Purple
#AA23FF
ΔE00 3.56
Lightish Purple
#A552E6
ΔE00 3.84
Bright Violet
#AD0AFD
ΔE00 4.48
Purpley
#8756E4
ΔE00 4.91
Neon Purple
#BC13FE
ΔE00 5.14
Bright Purple
#BE03FD
ΔE00 5.46
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9D42EB #90EB42
analogous
#4942EB #9D42EB #EB42E4
triadic
#9D42EB #EB9D42 #42EB9D
tetradic
#9D42EB #EB4942 #90EB42 #42E4EB
square
#9D42EB #EB4942 #90EB42 #42E4EB
split-complementary
#9D42EB #E4EB42 #42EB49
monochromatic
#5F11A2 #7F17D9 #9D42EB #BA79F1 #D6B1F7
Accessibility & contrast
On white
4.76
#9D42EB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.41
#9D42EB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9D42EB
4.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9D42EB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9D42EB | 1.00 | 4.76 | 4.41 | 4.76 |
| #FFFFFF | 4.76 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.41 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.76 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0071F0
Deuteranopia (green-blind)
#0073E8
Tritanopia (blue-blind)
#8E6B93
Achromatopsia (no color)
#737373
Design tokens & code
CSS
--color: #9d42eb; /* rgb */ color: rgb(157, 66, 235); /* oklch */ color: oklch(58.4% 0.240 304.4);
Tailwind
colors: {
custom: {
50: '#c07ef2',
500: '#9d42eb',
950: '#000000',
},
}SCSS
$custom: #9d42eb; $custom-light: #c07ef2; $custom-dark: #000000;
JSON
{
"hex": "#9d42eb",
"rgb": {
"r": 157,
"g": 66,
"b": 235
},
"hsl": {
"h": 272.308,
"s": 80.861,
"l": 59.02
},
"oklch": {
"l": 0.58427,
"c": 0.24047,
"h": 304.4
},
"luminance": 0.17063
}Semantic roles & 50–950 ramp
primary
#9D42EB
secondary
#C2E6A3
accent
#F7318C
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130B17
muted
#827C85