#af048f
a dark, electric magenta / pink · warm · closest name: purple
RGB
175, 4, 143
HSL
311°, 96%, 35%
CMYK
0, 98, 18, 31
Luminance
0.1118
Every format
| HEX | #af048f |
| RGB | rgb(175, 4, 143) |
| HSL | hsl(311, 96%, 35%) |
| CMYK | cmyk(0%, 98%, 18%, 31%) |
| LAB | lab(39.9 69.2 -29.2) |
| LCH | lch(39.9 75.1 337.1) |
| OKLCH | oklch(0.512 0.221 339.0) |
Copy-ready code
/* CSS */
color: #af048f;
background-color: #af048f;
/* Tailwind (arbitrary) */
class="text-[#af048f] bg-[#af048f]"
/* SCSS */
$brand: #af048f;
/* SwiftUI */
Color(red: 0.686, green: 0.016, blue: 0.561)
/* Android */
Color.parseColor("#af048f")Accessibility — WCAG contrast
Aa
#af048f on white: 6.49:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#af048f on black: 3.24:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green1.6%
Blue56.1%
CMYK percentages
Cyan0.0%
Magenta97.7%
Yellow18.3%
Key (black)31.4%
Color previews
#af048f text on a black background
contrast 3.24:1
Card sample
#af048f text on a white background
contrast 6.49:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #af048f;
Background color
Panel with #af048f background
background-color: #af048f;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #af048f;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 4, 143, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 4, 143, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af048f; background: linear-gradient(135deg, #af048f, #AF041D);