#af077f
a dark, electric magenta / pink · warm · closest name: purple
RGB
175, 7, 127
HSL
317°, 92%, 36%
CMYK
0, 96, 27, 31
Luminance
0.1080
Every format
| HEX | #af077f |
| RGB | rgb(175, 7, 127) |
| HSL | hsl(317, 92%, 36%) |
| CMYK | cmyk(0%, 96%, 27%, 31%) |
| LAB | lab(39.2 67.0 -20.4) |
| LCH | lch(39.2 70.0 343.1) |
| OKLCH | oklch(0.504 0.211 345.1) |
Copy-ready code
/* CSS */
color: #af077f;
background-color: #af077f;
/* Tailwind (arbitrary) */
class="text-[#af077f] bg-[#af077f]"
/* SCSS */
$brand: #af077f;
/* SwiftUI */
Color(red: 0.686, green: 0.027, blue: 0.498)
/* Android */
Color.parseColor("#af077f")Accessibility — WCAG contrast
Aa
#af077f on white: 6.65:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#af077f on black: 3.16:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green2.7%
Blue49.8%
CMYK percentages
Cyan0.0%
Magenta96.0%
Yellow27.4%
Key (black)31.4%
Color previews
#af077f text on a black background
contrast 3.16:1
Card sample
#af077f text on a white background
contrast 6.65:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #af077f;
Background color
Panel with #af077f background
background-color: #af077f;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #af077f;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 7, 127, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 7, 127, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af077f; background: linear-gradient(135deg, #af077f, #AF070F);