#af039b
a dark, electric magenta / pink · warm · closest name: purple
RGB
175, 3, 155
HSL
307°, 97%, 35%
CMYK
0, 98, 11, 31
Luminance
0.1155
Every format
| HEX | #af039b |
| RGB | rgb(175, 3, 155) |
| HSL | hsl(307, 97%, 35%) |
| CMYK | cmyk(0%, 98%, 11%, 31%) |
| LAB | lab(40.5 70.9 -35.6) |
| LCH | lch(40.5 79.3 333.4) |
| OKLCH | oklch(0.518 0.229 334.8) |
Copy-ready code
/* CSS */
color: #af039b;
background-color: #af039b;
/* Tailwind (arbitrary) */
class="text-[#af039b] bg-[#af039b]"
/* SCSS */
$brand: #af039b;
/* SwiftUI */
Color(red: 0.686, green: 0.012, blue: 0.608)
/* Android */
Color.parseColor("#af039b")Accessibility — WCAG contrast
Aa
#af039b on white: 6.35:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#af039b on black: 3.31:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green1.2%
Blue60.8%
CMYK percentages
Cyan0.0%
Magenta98.3%
Yellow11.4%
Key (black)31.4%
Color previews
#af039b text on a black background
contrast 3.31:1
Card sample
#af039b text on a white background
contrast 6.35:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #af039b;
Background color
Panel with #af039b background
background-color: #af039b;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #af039b;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 3, 155, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 3, 155, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af039b; background: linear-gradient(135deg, #af039b, #AF0328);