#af21cd
a balanced, vivid violet · warm · closest name: magenta
RGB
175, 33, 205
HSL
290°, 72%, 47%
CMYK
15, 84, 0, 20
Luminance
0.1461
Every format
| HEX | #af21cd |
| RGB | rgb(175, 33, 205) |
| HSL | hsl(290, 72%, 47%) |
| CMYK | cmyk(15%, 84%, 0%, 20%) |
| LAB | lab(45.1 74.2 -57.7) |
| LCH | lch(45.1 94.0 322.1) |
| OKLCH | oklch(0.560 0.250 319.4) |
Copy-ready code
/* CSS */
color: #af21cd;
background-color: #af21cd;
/* Tailwind (arbitrary) */
class="text-[#af21cd] bg-[#af21cd]"
/* SCSS */
$brand: #af21cd;
/* SwiftUI */
Color(red: 0.686, green: 0.129, blue: 0.804)
/* Android */
Color.parseColor("#af21cd")Accessibility — WCAG contrast
Aa
#af21cd on white: 5.35:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#af21cd on black: 3.92:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green12.9%
Blue80.4%
CMYK percentages
Cyan14.6%
Magenta83.9%
Yellow0.0%
Key (black)19.6%
Color previews
#af21cd text on a black background
contrast 3.92:1
Card sample
#af21cd text on a white background
contrast 5.35:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #af21cd;
Background color
Panel with #af21cd background
background-color: #af21cd;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #af21cd;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 33, 205, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 33, 205, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af21cd; background: linear-gradient(135deg, #af21cd, #CD2179);