#ac2cf8
a balanced, electric violet · warm · closest name: magenta
RGB
172, 44, 248
HSL
278°, 94%, 57%
CMYK
31, 82, 0, 3
Luminance
0.1735
Every format
| HEX | #ac2cf8 |
| RGB | rgb(172, 44, 248) |
| HSL | hsl(278, 94%, 57%) |
| CMYK | cmyk(31%, 82%, 0%, 3%) |
| LAB | lab(48.7 79.0 -76.4) |
| LCH | lch(48.7 109.9 316.0) |
| OKLCH | oklch(0.594 0.276 308.0) |
Copy-ready code
/* CSS */
color: #ac2cf8;
background-color: #ac2cf8;
/* Tailwind (arbitrary) */
class="text-[#ac2cf8] bg-[#ac2cf8]"
/* SCSS */
$brand: #ac2cf8;
/* SwiftUI */
Color(red: 0.675, green: 0.173, blue: 0.973)
/* Android */
Color.parseColor("#ac2cf8")Accessibility — WCAG contrast
Aa
#ac2cf8 on white: 4.70:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#ac2cf8 on black: 4.47:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red67.5%
Green17.3%
Blue97.3%
CMYK percentages
Cyan30.6%
Magenta82.3%
Yellow0.0%
Key (black)2.7%
Color previews
#ac2cf8 text on a black background
contrast 4.47:1
Card sample
#ac2cf8 text on a white background
contrast 4.70:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ac2cf8;
Background color
Panel with #ac2cf8 background
background-color: #ac2cf8;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ac2cf8;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(172, 44, 248, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(172, 44, 248, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ac2cf8; background: linear-gradient(135deg, #ac2cf8, #F82CBC);