#af30df
a balanced, vivid violet · warm · closest name: magenta
RGB
175, 48, 223
HSL
284°, 73%, 53%
CMYK
22, 79, 0, 13
Luminance
0.1656
Every format
| HEX | #af30df |
| RGB | rgb(175, 48, 223) |
| HSL | hsl(284, 73%, 53%) |
| CMYK | cmyk(22%, 79%, 0%, 13%) |
| LAB | lab(47.7 73.5 -63.9) |
| LCH | lch(47.7 97.3 319.0) |
| OKLCH | oklch(0.582 0.252 314.3) |
Copy-ready code
/* CSS */
color: #af30df;
background-color: #af30df;
/* Tailwind (arbitrary) */
class="text-[#af30df] bg-[#af30df]"
/* SCSS */
$brand: #af30df;
/* SwiftUI */
Color(red: 0.686, green: 0.188, blue: 0.875)
/* Android */
Color.parseColor("#af30df")Accessibility — WCAG contrast
Aa
#af30df on white: 4.87:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#af30df on black: 4.31:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green18.8%
Blue87.5%
CMYK percentages
Cyan21.5%
Magenta78.5%
Yellow0.0%
Key (black)12.5%
Color previews
#af30df text on a black background
contrast 4.31:1
Card sample
#af30df text on a white background
contrast 4.87:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #af30df;
Background color
Panel with #af30df background
background-color: #af30df;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #af30df;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 48, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 48, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af30df; background: linear-gradient(135deg, #af30df, #DF309A);