#ac45df
a balanced, vivid violet · warm · closest name: slateblue
RGB
172, 69, 223
HSL
280°, 71%, 57%
CMYK
23, 69, 0, 13
Luminance
0.1835
Every format
| HEX | #ac45df |
| RGB | rgb(172, 69, 223) |
| HSL | hsl(280, 71%, 57%) |
| CMYK | cmyk(23%, 69%, 0%, 13%) |
| LAB | lab(49.9 65.3 -60.3) |
| LCH | lch(49.9 88.9 317.3) |
| OKLCH | oklch(0.597 0.230 312.1) |
Copy-ready code
/* CSS */
color: #ac45df;
background-color: #ac45df;
/* Tailwind (arbitrary) */
class="text-[#ac45df] bg-[#ac45df]"
/* SCSS */
$brand: #ac45df;
/* SwiftUI */
Color(red: 0.675, green: 0.271, blue: 0.875)
/* Android */
Color.parseColor("#ac45df")Accessibility — WCAG contrast
Aa
#ac45df on white: 4.50:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#ac45df on black: 4.67:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red67.5%
Green27.1%
Blue87.5%
CMYK percentages
Cyan22.9%
Magenta69.1%
Yellow0.0%
Key (black)12.5%
Color previews
#ac45df text on a black background
contrast 4.67:1
Card sample
#ac45df text on a white background
contrast 4.50:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ac45df;
Background color
Panel with #ac45df background
background-color: #ac45df;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ac45df;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(172, 69, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(172, 69, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ac45df; background: linear-gradient(135deg, #ac45df, #DF45AB);