#ac2cfd
a balanced, electric violet · warm · closest name: magenta
RGB
172, 44, 253
HSL
277°, 98%, 58%
CMYK
32, 83, 0, 1
Luminance
0.1766
Every format
| HEX | #ac2cfd |
| RGB | rgb(172, 44, 253) |
| HSL | hsl(277, 98%, 58%) |
| CMYK | cmyk(32%, 83%, 0%, 1%) |
| LAB | lab(49.1 80.0 -78.5) |
| LCH | lch(49.1 112.1 315.5) |
| OKLCH | oklch(0.598 0.280 306.9) |
Copy-ready code
/* CSS */
color: #ac2cfd;
background-color: #ac2cfd;
/* Tailwind (arbitrary) */
class="text-[#ac2cfd] bg-[#ac2cfd]"
/* SCSS */
$brand: #ac2cfd;
/* SwiftUI */
Color(red: 0.675, green: 0.173, blue: 0.992)
/* Android */
Color.parseColor("#ac2cfd")Accessibility — WCAG contrast
Aa
#ac2cfd on white: 4.63:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#ac2cfd on black: 4.53:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red67.5%
Green17.3%
Blue99.2%
CMYK percentages
Cyan32.0%
Magenta82.6%
Yellow0.0%
Key (black)0.8%
Color previews
#ac2cfd text on a black background
contrast 4.53:1
Card sample
#ac2cfd text on a white background
contrast 4.63:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ac2cfd;
Background color
Panel with #ac2cfd background
background-color: #ac2cfd;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ac2cfd;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(172, 44, 253, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(172, 44, 253, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ac2cfd; background: linear-gradient(135deg, #ac2cfd, #FD2CC3);