#ac26df
a balanced, vivid violet · warm · closest name: magenta
RGB
172, 38, 223
HSL
284°, 74%, 51%
CMYK
23, 83, 0, 13
Luminance
0.1548
Every format
| HEX | #ac26df |
| RGB | rgb(172, 38, 223) |
| HSL | hsl(284, 74%, 51%) |
| CMYK | cmyk(23%, 83%, 0%, 13%) |
| LAB | lab(46.3 75.8 -66.2) |
| LCH | lch(46.3 100.6 318.9) |
| OKLCH | oklch(0.572 0.259 313.8) |
Copy-ready code
/* CSS */
color: #ac26df;
background-color: #ac26df;
/* Tailwind (arbitrary) */
class="text-[#ac26df] bg-[#ac26df]"
/* SCSS */
$brand: #ac26df;
/* SwiftUI */
Color(red: 0.675, green: 0.149, blue: 0.875)
/* Android */
Color.parseColor("#ac26df")Accessibility — WCAG contrast
Aa
#ac26df on white: 5.13:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#ac26df on black: 4.10:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red67.5%
Green14.9%
Blue87.5%
CMYK percentages
Cyan22.9%
Magenta83.0%
Yellow0.0%
Key (black)12.5%
Color previews
#ac26df text on a black background
contrast 4.10:1
Card sample
#ac26df text on a white background
contrast 5.13:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ac26df;
Background color
Panel with #ac26df background
background-color: #ac26df;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ac26df;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(172, 38, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(172, 38, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ac26df; background: linear-gradient(135deg, #ac26df, #DF2697);