#af3cd4
a balanced, vivid violet · warm · closest name: purple
RGB
175, 60, 212
HSL
285°, 64%, 53%
CMYK
18, 72, 0, 17
Luminance
0.1710
Every format
| HEX | #af3cd4 |
| RGB | rgb(175, 60, 212) |
| HSL | hsl(285, 64%, 53%) |
| CMYK | cmyk(18%, 72%, 0%, 17%) |
| LAB | lab(48.4 67.3 -56.5) |
| LCH | lch(48.4 87.8 320.0) |
| OKLCH | oklch(0.585 0.231 316.5) |
Copy-ready code
/* CSS */
color: #af3cd4;
background-color: #af3cd4;
/* Tailwind (arbitrary) */
class="text-[#af3cd4] bg-[#af3cd4]"
/* SCSS */
$brand: #af3cd4;
/* SwiftUI */
Color(red: 0.686, green: 0.235, blue: 0.831)
/* Android */
Color.parseColor("#af3cd4")Accessibility — WCAG contrast
Aa
#af3cd4 on white: 4.75:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#af3cd4 on black: 4.42:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green23.5%
Blue83.1%
CMYK percentages
Cyan17.5%
Magenta71.7%
Yellow0.0%
Key (black)16.9%
Color previews
#af3cd4 text on a black background
contrast 4.42:1
Card sample
#af3cd4 text on a white background
contrast 4.75:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #af3cd4;
Background color
Panel with #af3cd4 background
background-color: #af3cd4;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #af3cd4;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 60, 212, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 60, 212, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af3cd4; background: linear-gradient(135deg, #af3cd4, #D43C94);