#af00ff
a balanced, electric violet · warm · closest name: magenta
RGB
175, 0, 255
HSL
281°, 100%, 50%
CMYK
31, 100, 0, 0
Luminance
0.1633
Every format
| HEX | #af00ff |
| RGB | rgb(175, 0, 255) |
| HSL | hsl(281, 100%, 50%) |
| CMYK | cmyk(31%, 100%, 0%, 0%) |
| LAB | lab(47.4 87.5 -82.4) |
| LCH | lch(47.4 120.2 316.7) |
| OKLCH | oklch(0.588 0.300 308.5) |
Copy-ready code
/* CSS */
color: #af00ff;
background-color: #af00ff;
/* Tailwind (arbitrary) */
class="text-[#af00ff] bg-[#af00ff]"
/* SCSS */
$brand: #af00ff;
/* SwiftUI */
Color(red: 0.686, green: 0.000, blue: 1.000)
/* Android */
Color.parseColor("#af00ff")Accessibility — WCAG contrast
Aa
#af00ff on white: 4.92:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#af00ff on black: 4.27:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green0.0%
Blue100.0%
CMYK percentages
Cyan31.4%
Magenta100.0%
Yellow0.0%
Key (black)0.0%
Color previews
#af00ff text on a black background
contrast 4.27:1
Card sample
#af00ff text on a white background
contrast 4.92:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #af00ff;
Background color
Panel with #af00ff background
background-color: #af00ff;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #af00ff;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 0, 255, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 0, 255, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af00ff; background: linear-gradient(135deg, #af00ff, #FF00A5);