#ac40c5
a balanced, vivid violet · warm · closest name: purple
RGB
172, 64, 197
HSL
289°, 53%, 51%
CMYK
13, 68, 0, 23
Luminance
0.1647
Every format
| HEX | #ac40c5 |
| RGB | rgb(172, 64, 197) |
| HSL | hsl(289, 53%, 51%) |
| CMYK | cmyk(13%, 68%, 0%, 23%) |
| LAB | lab(47.6 62.2 -49.1) |
| LCH | lch(47.6 79.3 321.7) |
| OKLCH | oklch(0.575 0.212 319.5) |
Copy-ready code
/* CSS */
color: #ac40c5;
background-color: #ac40c5;
/* Tailwind (arbitrary) */
class="text-[#ac40c5] bg-[#ac40c5]"
/* SCSS */
$brand: #ac40c5;
/* SwiftUI */
Color(red: 0.675, green: 0.251, blue: 0.773)
/* Android */
Color.parseColor("#ac40c5")Accessibility — WCAG contrast
Aa
#ac40c5 on white: 4.89:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#ac40c5 on black: 4.29:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red67.5%
Green25.1%
Blue77.3%
CMYK percentages
Cyan12.7%
Magenta67.5%
Yellow0.0%
Key (black)22.7%
Color previews
#ac40c5 text on a black background
contrast 4.29:1
Card sample
#ac40c5 text on a white background
contrast 4.89:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ac40c5;
Background color
Panel with #ac40c5 background
background-color: #ac40c5;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ac40c5;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(172, 64, 197, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(172, 64, 197, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ac40c5; background: linear-gradient(135deg, #ac40c5, #C54085);