#980df4
a balanced, electric violet · warm · closest name: blue
RGB
152, 13, 244
HSL
276°, 91%, 50%
CMYK
38, 95, 0, 4
Luminance
0.1349
Every format
| HEX | #980df4 |
| RGB | rgb(152, 13, 244) |
| HSL | hsl(276, 91%, 50%) |
| CMYK | cmyk(38%, 95%, 0%, 4%) |
| LAB | lab(43.5 81.8 -82.7) |
| LCH | lch(43.5 116.3 314.7) |
| OKLCH | oklch(0.551 0.284 303.6) |
Copy-ready code
/* CSS */
color: #980df4;
background-color: #980df4;
/* Tailwind (arbitrary) */
class="text-[#980df4] bg-[#980df4]"
/* SCSS */
$brand: #980df4;
/* SwiftUI */
Color(red: 0.596, green: 0.051, blue: 0.957)
/* Android */
Color.parseColor("#980df4")Accessibility — WCAG contrast
Aa
#980df4 on white: 5.68:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#980df4 on black: 3.70:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red59.6%
Green5.1%
Blue95.7%
CMYK percentages
Cyan37.7%
Magenta94.7%
Yellow0.0%
Key (black)4.3%
Color previews
#980df4 text on a black background
contrast 3.70:1
Card sample
#980df4 text on a white background
contrast 5.68:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #980df4;
Background color
Panel with #980df4 background
background-color: #980df4;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #980df4;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(152, 13, 244, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(152, 13, 244, 0.45);
Border & gradient
Gradient panel
border: 3px solid #980df4; background: linear-gradient(135deg, #980df4, #F40DB6);