#ac027f
a dark, electric magenta / pink · warm · closest name: purple
RGB
172, 2, 127
HSL
316°, 98%, 34%
CMYK
0, 99, 26, 33
Luminance
0.1035
Every format
| HEX | #ac027f |
| RGB | rgb(172, 2, 127) |
| HSL | hsl(316, 98%, 34%) |
| CMYK | cmyk(0%, 99%, 26%, 33%) |
| LAB | lab(38.5 66.9 -21.6) |
| LCH | lch(38.5 70.3 342.1) |
| OKLCH | oklch(0.498 0.211 344.1) |
Copy-ready code
/* CSS */
color: #ac027f;
background-color: #ac027f;
/* Tailwind (arbitrary) */
class="text-[#ac027f] bg-[#ac027f]"
/* SCSS */
$brand: #ac027f;
/* SwiftUI */
Color(red: 0.675, green: 0.008, blue: 0.498)
/* Android */
Color.parseColor("#ac027f")Accessibility — WCAG contrast
Aa
#ac027f on white: 6.84:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#ac027f on black: 3.07:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red67.5%
Green0.8%
Blue49.8%
CMYK percentages
Cyan0.0%
Magenta98.8%
Yellow26.2%
Key (black)32.5%
Color previews
#ac027f text on a black background
contrast 3.07:1
Card sample
#ac027f text on a white background
contrast 6.84:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ac027f;
Background color
Panel with #ac027f background
background-color: #ac027f;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ac027f;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(172, 2, 127, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(172, 2, 127, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ac027f; background: linear-gradient(135deg, #ac027f, #AC020E);