#9942E9#9942E9
#9942E9 is a mid, highly saturated violet. Relative luminance 0.166; OKLCH L 57.8% C 0.238 H 303.4°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).
Color values
| HEX | #9942E9 |
|---|---|
| RGB | rgb(153, 66, 233) |
| HSL | hsl(271, 79%, 59%) |
| HSV | hsv(271, 72%, 91%) |
| CMYK | cmyk(34.3%, 71.7%, 0%, 8.6%) |
| CIE-LAB | lab(47.69, 65.11, -69.68) |
| CIE-LCH | lch(47.69, 95.36, 313.06°) |
| OKLab | oklab(57.81% 0.1309 -0.1984) |
| OKLCH | oklch(57.81% 0.238 303.4) |
| XYZ | xyz(29.7896, 16.5520, 78.7004) |
| Luminance | 0.1655 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Electric Purple
#AA23FF
ΔE00 3.88
Lightish Purple
#A552E6
ΔE00 4.39
Purpley
#8756E4
ΔE00 4.63
Bright Violet
#AD0AFD
ΔE00 4.68
Blueviolet
#8A2BE2
ΔE00 5.36
Darkorchid
#9932CC
ΔE00 5.40
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9942E9 #92E942
analogous
#4542E9 #9942E9 #E942E6
triadic
#9942E9 #E99942 #42E999
tetradic
#9942E9 #E94542 #92E942 #42E6E9
square
#9942E9 #E94542 #92E942 #42E6E9
split-complementary
#9942E9 #E6E942 #42E945
monochromatic
#5B129E #7B19D5 #9942E9 #B779EF #D4B0F6
Accessibility & contrast
On white
4.87
#9942E9 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.31
#9942E9 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9942E9
4.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9942E9 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9942E9 | 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)
#006FEE
Deuteranopia (green-blind)
#0071E6
Tritanopia (blue-blind)
#896B92
Achromatopsia (no color)
#717171
Design tokens & code
CSS
--color: #9942e9; /* rgb */ color: rgb(153, 66, 233); /* oklch */ color: oklch(57.8% 0.238 303.4);
Tailwind
colors: {
custom: {
50: '#bd7ef1',
500: '#9942e9',
950: '#000000',
},
}SCSS
$custom: #9942e9; $custom-light: #bd7ef1; $custom-dark: #000000;
JSON
{
"hex": "#9942e9",
"rgb": {
"r": 153,
"g": 66,
"b": 233
},
"hsl": {
"h": 271.257,
"s": 79.147,
"l": 58.627
},
"oklch": {
"l": 0.57814,
"c": 0.23768,
"h": 303.4
},
"luminance": 0.16552
}Semantic roles & 50–950 ramp
primary
#9942E9
secondary
#C2E4A2
accent
#F63290
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130A17
muted
#827C85