#480049
a deep, electric magenta / pink · warm · closest name: midnightblue
RGB
72, 0, 73
HSL
299°, 100%, 14%
CMYK
1, 100, 0, 71
Luminance
0.0186
Every format
| HEX | #480049 |
| RGB | rgb(72, 0, 73) |
| HSL | hsl(299, 100%, 14%) |
| CMYK | cmyk(1%, 100%, 0%, 71%) |
| LAB | lab(14.7 39.6 -25.0) |
| LCH | lch(14.7 46.9 327.7) |
| OKLCH | oklch(0.283 0.130 327.7) |
Copy-ready code
/* CSS */
color: #480049;
background-color: #480049;
/* Tailwind (arbitrary) */
class="text-[#480049] bg-[#480049]"
/* SCSS */
$brand: #480049;
/* SwiftUI */
Color(red: 0.282, green: 0.000, blue: 0.286)
/* Android */
Color.parseColor("#480049")Accessibility — WCAG contrast
Aa
#480049 on white: 15.31:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#480049 on black: 1.37:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red28.2%
Green0.0%
Blue28.6%
CMYK percentages
Cyan1.4%
Magenta100.0%
Yellow0.0%
Key (black)71.4%
Color previews
#480049 text on a black background
contrast 1.37:1
Card sample
#480049 text on a white background
contrast 15.31:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #480049;
Background color
Panel with #480049 background
background-color: #480049;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #480049;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(72, 0, 73, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(72, 0, 73, 0.45);
Border & gradient
Gradient panel
border: 3px solid #480049; background: linear-gradient(135deg, #480049, #490019);