#9E42D9#9E42D9
#9E42D9 is a mid, highly saturated violet. Relative luminance 0.162; OKLCH L 57.3% C 0.223 H 308.8°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).
Color values
| HEX | #9E42D9 |
|---|---|
| RGB | rgb(158, 66, 217) |
| HSL | hsl(277, 67%, 55%) |
| HSV | hsv(277, 70%, 85%) |
| CMYK | cmyk(27.2%, 69.6%, 0%, 14.9%) |
| CIE-LAB | lab(47.20, 62.51, -61.35) |
| CIE-LCH | lch(47.20, 87.58, 315.53°) |
| OKLab | oklab(57.25% 0.1399 -0.1738) |
| OKLCH | oklch(57.25% 0.223 308.8) |
| XYZ | xyz(28.5706, 16.1758, 67.2493) |
| Luminance | 0.1618 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 3.85
Lightish Purple
#A552E6
ΔE00 4.48
Electric Purple
#AA23FF
ΔE00 5.12
Vibrant Purple
#AD03DE
ΔE00 5.18
Bright Violet
#AD0AFD
ΔE00 5.50
Blueviolet
#8A2BE2
ΔE00 5.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9E42D9 #7DD942
analogous
#5242D9 #9E42D9 #D942C9
triadic
#9E42D9 #D99E42 #42D99E
tetradic
#9E42D9 #D95242 #7DD942 #42C9D9
square
#9E42D9 #D95242 #7DD942 #42C9D9
split-complementary
#9E42D9 #C9D942 #42D952
monochromatic
#5C1B86 #7F25B9 #9E42D9 #B875E3 #D2A8ED
Accessibility & contrast
On white
4.96
#9E42D9 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.23
#9E42D9 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9E42D9
4.96:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9E42D9 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9E42D9 | 1.00 | 4.96 | 4.23 | 4.96 |
| #FFFFFF | 4.96 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.23 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.96 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006CDD
Deuteranopia (green-blind)
#2071D6
Tritanopia (blue-blind)
#956489
Achromatopsia (no color)
#707070
Design tokens & code
CSS
--color: #9e42d9; /* rgb */ color: rgb(158, 66, 217); /* oklch */ color: oklch(57.3% 0.223 308.8);
Tailwind
colors: {
custom: {
50: '#bf7ee6',
500: '#9e42d9',
950: '#000000',
},
}SCSS
$custom: #9e42d9; $custom-light: #bf7ee6; $custom-dark: #000000;
JSON
{
"hex": "#9e42d9",
"rgb": {
"r": 158,
"g": 66,
"b": 217
},
"hsl": {
"h": 276.556,
"s": 66.52,
"l": 55.49
},
"oklch": {
"l": 0.57251,
"c": 0.22311,
"h": 308.8
},
"luminance": 0.16175
}Semantic roles & 50–950 ramp
primary
#9E42D9
secondary
#B5DB9C
accent
#E93E81
background
#FCF8FE
surface
#F8EFFC
border
#D1CAD5
text
#130A16
muted
#827C84