#af30f3
a balanced, electric violet · warm · closest name: magenta
RGB
175, 48, 243
HSL
279°, 89%, 57%
CMYK
28, 80, 0, 5
Luminance
0.1770
Every format
| HEX | #af30f3 |
| RGB | rgb(175, 48, 243) |
| HSL | hsl(279, 89%, 57%) |
| CMYK | cmyk(28%, 80%, 0%, 5%) |
| LAB | lab(49.1 77.3 -72.8) |
| LCH | lch(49.1 106.2 316.7) |
| OKLCH | oklch(0.597 0.269 309.8) |
Copy-ready code
/* CSS */
color: #af30f3;
background-color: #af30f3;
/* Tailwind (arbitrary) */
class="text-[#af30f3] bg-[#af30f3]"
/* SCSS */
$brand: #af30f3;
/* SwiftUI */
Color(red: 0.686, green: 0.188, blue: 0.953)
/* Android */
Color.parseColor("#af30f3")Accessibility — WCAG contrast
Aa
#af30f3 on white: 4.63:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#af30f3 on black: 4.54:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green18.8%
Blue95.3%
CMYK percentages
Cyan28.0%
Magenta80.2%
Yellow0.0%
Key (black)4.7%
Color previews
#af30f3 text on a black background
contrast 4.54:1
Card sample
#af30f3 text on a white background
contrast 4.63:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #af30f3;
Background color
Panel with #af30f3 background
background-color: #af30f3;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #af30f3;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 48, 243, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 48, 243, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af30f3; background: linear-gradient(135deg, #af30f3, #F330B5);