#af059c
a dark, electric magenta / pink · warm · closest name: purple
RGB
175, 5, 156
HSL
307°, 94%, 35%
CMYK
0, 97, 11, 31
Luminance
0.1162
Every format
| HEX | #af059c |
| RGB | rgb(175, 5, 156) |
| HSL | hsl(307, 94%, 35%) |
| CMYK | cmyk(0%, 97%, 11%, 31%) |
| LAB | lab(40.6 70.8 -36.0) |
| LCH | lch(40.6 79.4 333.1) |
| OKLCH | oklch(0.519 0.229 334.5) |
Copy-ready code
/* CSS */
color: #af059c;
background-color: #af059c;
/* Tailwind (arbitrary) */
class="text-[#af059c] bg-[#af059c]"
/* SCSS */
$brand: #af059c;
/* SwiftUI */
Color(red: 0.686, green: 0.020, blue: 0.612)
/* Android */
Color.parseColor("#af059c")Accessibility — WCAG contrast
Aa
#af059c on white: 6.32:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#af059c on black: 3.32:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green2.0%
Blue61.2%
CMYK percentages
Cyan0.0%
Magenta97.1%
Yellow10.9%
Key (black)31.4%
Color previews
#af059c text on a black background
contrast 3.32:1
Card sample
#af059c text on a white background
contrast 6.32:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #af059c;
Background color
Panel with #af059c background
background-color: #af059c;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #af059c;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 5, 156, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 5, 156, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af059c; background: linear-gradient(135deg, #af059c, #AF052B);