#9D42E2#9D42E2
#9D42E2 is a mid, highly saturated violet. Relative luminance 0.166; OKLCH L 57.8% C 0.232 H 306.4°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).
Color values
| HEX | #9D42E2 |
|---|---|
| RGB | rgb(157, 66, 226) |
| HSL | hsl(274, 73%, 57%) |
| HSV | hsv(274, 71%, 89%) |
| CMYK | cmyk(30.5%, 70.8%, 0%, 11.4%) |
| CIE-LAB | lab(47.70, 64.28, -65.68) |
| CIE-LCH | lch(47.70, 91.90, 314.38°) |
| OKLab | oklab(57.77% 0.1374 -0.1865) |
| OKLCH | oklch(57.77% 0.232 306.4) |
| XYZ | xyz(29.5773, 16.5558, 73.5742) |
| Luminance | 0.1656 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lightish Purple
#A552E6
ΔE00 4.05
Electric Purple
#AA23FF
ΔE00 4.22
Darkorchid
#9932CC
ΔE00 4.70
Bright Violet
#AD0AFD
ΔE00 4.84
Purpley
#8756E4
ΔE00 5.24
Neon Purple
#BC13FE
ΔE00 5.54
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9D42E2 #87E242
analogous
#4D42E2 #9D42E2 #E242D7
triadic
#9D42E2 #E29D42 #42E29D
tetradic
#9D42E2 #E24D42 #87E242 #42D7E2
square
#9D42E2 #E24D42 #87E242 #42D7E2
split-complementary
#9D42E2 #D7E242 #42E24D
monochromatic
#5D1793 #7F1FC8 #9D42E2 #B977EA #D4ACF2
Accessibility & contrast
On white
4.87
#9D42E2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.31
#9D42E2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9D42E2
4.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9D42E2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9D42E2 | 1.00 | 4.87 | 4.31 | 4.87 |
| #FFFFFF | 4.87 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.31 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.87 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006EE7
Deuteranopia (green-blind)
#0072DF
Tritanopia (blue-blind)
#91678E
Achromatopsia (no color)
#717171
Design tokens & code
CSS
--color: #9d42e2; /* rgb */ color: rgb(157, 66, 226); /* oklch */ color: oklch(57.8% 0.232 306.4);
Tailwind
colors: {
custom: {
50: '#bf7eec',
500: '#9d42e2',
950: '#000000',
},
}SCSS
$custom: #9d42e2; $custom-light: #bf7eec; $custom-dark: #000000;
JSON
{
"hex": "#9d42e2",
"rgb": {
"r": 157,
"g": 66,
"b": 226
},
"hsl": {
"h": 274.125,
"s": 73.394,
"l": 57.255
},
"oklch": {
"l": 0.57769,
"c": 0.23166,
"h": 306.4
},
"luminance": 0.16556
}Semantic roles & 50–950 ramp
primary
#9D42E2
secondary
#BBE09F
accent
#F03887
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130A16
muted
#827C84