#9F42EA#9F42EA
#9F42EA is a mid, highly saturated violet. Relative luminance 0.172; OKLCH L 58.6% C 0.240 H 305.3°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).
Color values
| HEX | #9F42EA |
|---|---|
| RGB | rgb(159, 66, 234) |
| HSL | hsl(273, 80%, 59%) |
| HSV | hsv(273, 72%, 92%) |
| CMYK | cmyk(32.1%, 71.8%, 0%, 8.2%) |
| CIE-LAB | lab(48.52, 66.41, -68.86) |
| CIE-LCH | lch(48.52, 95.67, 313.97°) |
| OKLab | oklab(58.59% 0.1387 -0.1958) |
| OKLCH | oklch(58.59% 0.24 305.3) |
| XYZ | xyz(31.0943, 17.2081, 79.5093) |
| Luminance | 0.1721 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Electric Purple
#AA23FF
ΔE00 3.57
Lightish Purple
#A552E6
ΔE00 3.60
Bright Violet
#AD0AFD
ΔE00 4.47
Neon Purple
#BC13FE
ΔE00 4.94
Purpley
#8756E4
ΔE00 5.13
Bright Purple
#BE03FD
ΔE00 5.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9F42EA #8DEA42
analogous
#4B42EA #9F42EA #EA42E1
triadic
#9F42EA #EA9F42 #42EA9F
tetradic
#9F42EA #EA4B42 #8DEA42 #42E1EA
square
#9F42EA #EA4B42 #8DEA42 #42E1EA
split-complementary
#9F42EA #E1EA42 #42EA4B
monochromatic
#6012A0 #8218D7 #9F42EA #BB79F0 #D7B0F6
Accessibility & contrast
On white
4.73
#9F42EA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.44
#9F42EA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9F42EA
4.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9F42EA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9F42EA | 1.00 | 4.73 | 4.44 | 4.73 |
| #FFFFFF | 4.73 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.44 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.73 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0071EF
Deuteranopia (green-blind)
#0073E7
Tritanopia (blue-blind)
#916A92
Achromatopsia (no color)
#737373
Design tokens & code
CSS
--color: #9f42ea; /* rgb */ color: rgb(159, 66, 234); /* oklch */ color: oklch(58.6% 0.240 305.3);
Tailwind
colors: {
custom: {
50: '#c17ef2',
500: '#9f42ea',
950: '#000000',
},
}SCSS
$custom: #9f42ea; $custom-light: #c17ef2; $custom-dark: #000000;
JSON
{
"hex": "#9f42ea",
"rgb": {
"r": 159,
"g": 66,
"b": 234
},
"hsl": {
"h": 273.214,
"s": 80,
"l": 58.824
},
"oklch": {
"l": 0.58588,
"c": 0.23993,
"h": 305.3
},
"luminance": 0.17208
}Semantic roles & 50–950 ramp
primary
#9F42EA
secondary
#C0E5A3
accent
#F63189
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130B17
muted
#827C85