#9f2def
a balanced, electric violet · warm · closest name: magenta
RGB
159, 45, 239
HSL
275°, 86%, 56%
CMYK
34, 81, 0, 6
Luminance
0.1548
Every format
| HEX | #9f2def |
| RGB | rgb(159, 45, 239) |
| HSL | hsl(275, 86%, 56%) |
| CMYK | cmyk(34%, 81%, 0%, 6%) |
| LAB | lab(46.3 75.0 -75.3) |
| LCH | lch(46.3 106.3 314.9) |
| OKLCH | oklch(0.571 0.264 305.7) |
Copy-ready code
/* CSS */
color: #9f2def;
background-color: #9f2def;
/* Tailwind (arbitrary) */
class="text-[#9f2def] bg-[#9f2def]"
/* SCSS */
$brand: #9f2def;
/* SwiftUI */
Color(red: 0.624, green: 0.176, blue: 0.937)
/* Android */
Color.parseColor("#9f2def")Accessibility — WCAG contrast
Aa
#9f2def on white: 5.13:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#9f2def on black: 4.10:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red62.4%
Green17.6%
Blue93.7%
CMYK percentages
Cyan33.5%
Magenta81.2%
Yellow0.0%
Key (black)6.3%
Color previews
#9f2def text on a black background
contrast 4.10:1
Card sample
#9f2def text on a white background
contrast 5.13:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #9f2def;
Background color
Panel with #9f2def background
background-color: #9f2def;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #9f2def;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(159, 45, 239, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(159, 45, 239, 0.45);
Border & gradient
Gradient panel
border: 3px solid #9f2def; background: linear-gradient(135deg, #9f2def, #EF2DBE);