#af49f0
a balanced, electric violet · warm · closest name: magenta
RGB
175, 73, 240
HSL
277°, 85%, 61%
CMYK
27, 70, 0, 6
Luminance
0.2017
Every format
| HEX | #af49f0 |
| RGB | rgb(175, 73, 240) |
| HSL | hsl(277, 85%, 61%) |
| CMYK | cmyk(27%, 70%, 0%, 6%) |
| LAB | lab(52.0 67.8 -66.5) |
| LCH | lch(52.0 95.0 315.6) |
| OKLCH | oklch(0.617 0.242 308.9) |
Copy-ready code
/* CSS */
color: #af49f0;
background-color: #af49f0;
/* Tailwind (arbitrary) */
class="text-[#af49f0] bg-[#af49f0]"
/* SCSS */
$brand: #af49f0;
/* SwiftUI */
Color(red: 0.686, green: 0.286, blue: 0.941)
/* Android */
Color.parseColor("#af49f0")Accessibility — WCAG contrast
Aa
#af49f0 on white: 4.17:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#af49f0 on black: 5.03:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green28.6%
Blue94.1%
CMYK percentages
Cyan27.1%
Magenta69.6%
Yellow0.0%
Key (black)5.9%
Color previews
#af49f0 text on a black background
contrast 5.03:1
Card sample
#af49f0 text on a white background
contrast 4.17:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #af49f0;
Background color
Panel with #af49f0 background
background-color: #af49f0;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #af49f0;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 73, 240, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 73, 240, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af49f0; background: linear-gradient(135deg, #af49f0, #F049C2);