#af40f4
a balanced, electric violet · warm · closest name: magenta
RGB
175, 64, 244
HSL
277°, 89%, 60%
CMYK
28, 74, 0, 4
Luminance
0.1931
Every format
| HEX | #af40f4 |
| RGB | rgb(175, 64, 244) |
| HSL | hsl(277, 89%, 60%) |
| CMYK | cmyk(28%, 74%, 0%, 4%) |
| LAB | lab(51.0 72.2 -70.3) |
| LCH | lch(51.0 100.8 315.8) |
| OKLCH | oklch(0.610 0.255 308.6) |
Copy-ready code
/* CSS */
color: #af40f4;
background-color: #af40f4;
/* Tailwind (arbitrary) */
class="text-[#af40f4] bg-[#af40f4]"
/* SCSS */
$brand: #af40f4;
/* SwiftUI */
Color(red: 0.686, green: 0.251, blue: 0.957)
/* Android */
Color.parseColor("#af40f4")Accessibility — WCAG contrast
Aa
#af40f4 on white: 4.32:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#af40f4 on black: 4.86:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green25.1%
Blue95.7%
CMYK percentages
Cyan28.3%
Magenta73.8%
Yellow0.0%
Key (black)4.3%
Color previews
#af40f4 text on a black background
contrast 4.86:1
Card sample
#af40f4 text on a white background
contrast 4.32:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #af40f4;
Background color
Panel with #af40f4 background
background-color: #af40f4;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #af40f4;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 64, 244, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 64, 244, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af40f4; background: linear-gradient(135deg, #af40f4, #F440C1);