#9942E2#9942E2
#9942E2 is a mid, highly saturated violet. Relative luminance 0.162; OKLCH L 57.3% C 0.231 H 304.9°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).
Color values
| HEX | #9942E2 |
|---|---|
| RGB | rgb(153, 66, 226) |
| HSL | hsl(273, 73%, 57%) |
| HSV | hsv(273, 71%, 89%) |
| CMYK | cmyk(32.3%, 70.8%, 0%, 11.4%) |
| CIE-LAB | lab(47.18, 63.53, -66.54) |
| CIE-LCH | lch(47.18, 91.99, 313.67°) |
| OKLab | oklab(57.3% 0.1321 -0.1892) |
| OKLCH | oklch(57.3% 0.231 304.9) |
| XYZ | xyz(28.8095, 16.1599, 73.5382) |
| Luminance | 0.1616 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Electric Purple
#AA23FF
ΔE00 4.39
Lightish Purple
#A552E6
ΔE00 4.55
Darkorchid
#9932CC
ΔE00 4.56
Purpley
#8756E4
ΔE00 4.91
Bright Violet
#AD0AFD
ΔE00 4.98
Blueviolet
#8A2BE2
ΔE00 5.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9942E2 #8BE242
analogous
#4942E2 #9942E2 #E242DB
triadic
#9942E2 #E29942 #42E299
tetradic
#9942E2 #E24942 #8BE242 #42DBE2
square
#9942E2 #E24942 #8BE242 #42DBE2
split-complementary
#9942E2 #DBE242 #42E249
monochromatic
#5A1793 #7B1FC8 #9942E2 #B677EA #D2ACF2
Accessibility & contrast
On white
4.96
#9942E2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.23
#9942E2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9942E2
4.96:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9942E2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9942E2 | 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)
#006EE7
Deuteranopia (green-blind)
#0070DF
Tritanopia (blue-blind)
#8B688E
Achromatopsia (no color)
#707070
Design tokens & code
CSS
--color: #9942e2; /* rgb */ color: rgb(153, 66, 226); /* oklch */ color: oklch(57.3% 0.231 304.9);
Tailwind
colors: {
custom: {
50: '#bd7dec',
500: '#9942e2',
950: '#000000',
},
}SCSS
$custom: #9942e2; $custom-light: #bd7dec; $custom-dark: #000000;
JSON
{
"hex": "#9942e2",
"rgb": {
"r": 153,
"g": 66,
"b": 226
},
"hsl": {
"h": 272.625,
"s": 73.394,
"l": 57.255
},
"oklch": {
"l": 0.57296,
"c": 0.23072,
"h": 304.9
},
"luminance": 0.1616
}Semantic roles & 50–950 ramp
primary
#9942E2
secondary
#BDE09F
accent
#F0388C
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130A16
muted
#827C84