#421f49
a deep, soft magenta / pink · warm · closest name: midnightblue
RGB
66, 31, 73
HSL
290°, 40%, 20%
CMYK
10, 58, 0, 71
Luminance
0.0262
Every format
| HEX | #421f49 |
| RGB | rgb(66, 31, 73) |
| HSL | hsl(290, 40%, 20%) |
| CMYK | cmyk(10%, 58%, 0%, 71%) |
| LAB | lab(18.4 24.5 -19.2) |
| LCH | lch(18.4 31.1 322.0) |
| OKLCH | oklch(0.307 0.084 320.7) |
Copy-ready code
/* CSS */
color: #421f49;
background-color: #421f49;
/* Tailwind (arbitrary) */
class="text-[#421f49] bg-[#421f49]"
/* SCSS */
$brand: #421f49;
/* SwiftUI */
Color(red: 0.259, green: 0.122, blue: 0.286)
/* Android */
Color.parseColor("#421f49")Accessibility — WCAG contrast
Aa
#421f49 on white: 13.78:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#421f49 on black: 1.52:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red25.9%
Green12.2%
Blue28.6%
CMYK percentages
Cyan9.6%
Magenta57.5%
Yellow0.0%
Key (black)71.4%
Color previews
#421f49 text on a black background
contrast 1.52:1
Card sample
#421f49 text on a white background
contrast 13.78:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #421f49;
Background color
Panel with #421f49 background
background-color: #421f49;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #421f49;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(66, 31, 73, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(66, 31, 73, 0.45);
Border & gradient
Gradient panel
border: 3px solid #421f49; background: linear-gradient(135deg, #421f49, #491F34);