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