#9F42EB#9F42EB
#9F42EB is a mid, highly saturated violet. Relative luminance 0.173; OKLCH L 58.7% C 0.241 H 305.1°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).
Color values
| HEX | #9F42EB |
|---|---|
| RGB | rgb(159, 66, 235) |
| HSL | hsl(273, 81%, 59%) |
| HSV | hsv(273, 72%, 92%) |
| CMYK | cmyk(32.3%, 71.9%, 0%, 7.8%) |
| CIE-LAB | lab(48.59, 66.63, -69.30) |
| CIE-LCH | lch(48.59, 96.14, 313.87°) |
| OKLab | oklab(58.66% 0.1385 -0.1971) |
| OKLCH | oklch(58.66% 0.241 305.1) |
| XYZ | xyz(31.2383, 17.2657, 80.2681) |
| Luminance | 0.1727 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Electric Purple
#AA23FF
ΔE00 3.51
Lightish Purple
#A552E6
ΔE00 3.60
Bright Violet
#AD0AFD
ΔE00 4.44
Neon Purple
#BC13FE
ΔE00 4.91
Purpley
#8756E4
ΔE00 5.10
Bright Purple
#BE03FD
ΔE00 5.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9F42EB #8EEB42
analogous
#4B42EB #9F42EB #EB42E2
triadic
#9F42EB #EB9F42 #42EB9F
tetradic
#9F42EB #EB4B42 #8EEB42 #42E2EB
square
#9F42EB #EB4B42 #8EEB42 #42E2EB
split-complementary
#9F42EB #E2EB42 #42EB4B
monochromatic
#6111A2 #8217D9 #9F42EB #BB79F1 #D7B1F7
Accessibility & contrast
On white
4.72
#9F42EB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.45
#9F42EB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9F42EB
4.72:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9F42EB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9F42EB | 1.00 | 4.72 | 4.45 | 4.72 |
| #FFFFFF | 4.72 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.72 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0071F0
Deuteranopia (green-blind)
#0074E8
Tritanopia (blue-blind)
#916B93
Achromatopsia (no color)
#737373
Design tokens & code
CSS
--color: #9f42eb; /* rgb */ color: rgb(159, 66, 235); /* oklch */ color: oklch(58.7% 0.241 305.1);
Tailwind
colors: {
custom: {
50: '#c17ef2',
500: '#9f42eb',
950: '#000000',
},
}SCSS
$custom: #9f42eb; $custom-light: #c17ef2; $custom-dark: #000000;
JSON
{
"hex": "#9f42eb",
"rgb": {
"r": 159,
"g": 66,
"b": 235
},
"hsl": {
"h": 273.018,
"s": 80.861,
"l": 59.02
},
"oklch": {
"l": 0.58661,
"c": 0.24091,
"h": 305.1
},
"luminance": 0.17266
}Semantic roles & 50–950 ramp
primary
#9F42EB
secondary
#C1E6A3
accent
#F7318A
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130B17
muted
#827C85