#af72f4
a light, electric violet · warm · closest name: slateblue
RGB
175, 114, 244
HSL
268°, 86%, 70%
CMYK
28, 53, 0, 4
Luminance
0.2768
Every format
| HEX | #af72f4 |
| RGB | rgb(175, 114, 244) |
| HSL | hsl(268, 86%, 70%) |
| CMYK | cmyk(28%, 53%, 0%, 4%) |
| LAB | lab(59.6 48.9 -56.5) |
| LCH | lch(59.6 74.7 310.9) |
| OKLCH | oklch(0.672 0.191 303.3) |
Copy-ready code
/* CSS */
color: #af72f4;
background-color: #af72f4;
/* Tailwind (arbitrary) */
class="text-[#af72f4] bg-[#af72f4]"
/* SCSS */
$brand: #af72f4;
/* SwiftUI */
Color(red: 0.686, green: 0.447, blue: 0.957)
/* Android */
Color.parseColor("#af72f4")Accessibility — WCAG contrast
Aa
#af72f4 on white: 3.21:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#af72f4 on black: 6.54:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green44.7%
Blue95.7%
CMYK percentages
Cyan28.3%
Magenta53.3%
Yellow0.0%
Key (black)4.3%
Color previews
#af72f4 text on a black background
contrast 6.54:1
Card sample
#af72f4 text on a white background
contrast 3.21:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #af72f4;
Background color
Panel with #af72f4 background
background-color: #af72f4;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #af72f4;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 114, 244, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 114, 244, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af72f4; background: linear-gradient(135deg, #af72f4, #F472E2);