#ac50eb
a balanced, electric violet · warm · closest name: slateblue
RGB
172, 80, 235
HSL
276°, 80%, 62%
CMYK
27, 66, 0, 8
Luminance
0.2051
Every format
| HEX | #ac50eb |
| RGB | rgb(172, 80, 235) |
| HSL | hsl(276, 80%, 62%) |
| CMYK | cmyk(27%, 66%, 0%, 8%) |
| LAB | lab(52.4 63.1 -63.1) |
| LCH | lch(52.4 89.2 315.0) |
| OKLCH | oklch(0.617 0.228 308.4) |
Copy-ready code
/* CSS */
color: #ac50eb;
background-color: #ac50eb;
/* Tailwind (arbitrary) */
class="text-[#ac50eb] bg-[#ac50eb]"
/* SCSS */
$brand: #ac50eb;
/* SwiftUI */
Color(red: 0.675, green: 0.314, blue: 0.922)
/* Android */
Color.parseColor("#ac50eb")Accessibility — WCAG contrast
Aa
#ac50eb on white: 4.12:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#ac50eb on black: 5.10:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red67.5%
Green31.4%
Blue92.2%
CMYK percentages
Cyan26.8%
Magenta66.0%
Yellow0.0%
Key (black)7.8%
Color previews
#ac50eb text on a black background
contrast 5.10:1
Card sample
#ac50eb text on a white background
contrast 4.12:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ac50eb;
Background color
Panel with #ac50eb background
background-color: #ac50eb;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ac50eb;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(172, 80, 235, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(172, 80, 235, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ac50eb; background: linear-gradient(135deg, #ac50eb, #EB50C3);