#af027f
a dark, electric magenta / pink · warm · closest name: purple
RGB
175, 2, 127
HSL
317°, 98%, 35%
CMYK
0, 99, 27, 31
Luminance
0.1069
Every format
| HEX | #af027f |
| RGB | rgb(175, 2, 127) |
| HSL | hsl(317, 98%, 35%) |
| CMYK | cmyk(0%, 99%, 27%, 31%) |
| LAB | lab(39.1 67.5 -20.6) |
| LCH | lch(39.1 70.6 343.0) |
| OKLCH | oklch(0.503 0.213 345.0) |
Copy-ready code
/* CSS */
color: #af027f;
background-color: #af027f;
/* Tailwind (arbitrary) */
class="text-[#af027f] bg-[#af027f]"
/* SCSS */
$brand: #af027f;
/* SwiftUI */
Color(red: 0.686, green: 0.008, blue: 0.498)
/* Android */
Color.parseColor("#af027f")Accessibility — WCAG contrast
Aa
#af027f on white: 6.69:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#af027f on black: 3.14:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green0.8%
Blue49.8%
CMYK percentages
Cyan0.0%
Magenta98.9%
Yellow27.4%
Key (black)31.4%
Color previews
#af027f text on a black background
contrast 3.14:1
Card sample
#af027f text on a white background
contrast 6.69:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #af027f;
Background color
Panel with #af027f background
background-color: #af027f;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #af027f;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 2, 127, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 2, 127, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af027f; background: linear-gradient(135deg, #af027f, #AF020C);