#af50ff
a light, electric violet · warm · closest name: magenta
RGB
175, 80, 255
HSL
273°, 100%, 66%
CMYK
31, 69, 0, 0
Luminance
0.2207
Every format
| HEX | #af50ff |
| RGB | rgb(175, 80, 255) |
| HSL | hsl(273, 100%, 66%) |
| CMYK | cmyk(31%, 69%, 0%, 0%) |
| LAB | lab(54.1 68.1 -71.5) |
| LCH | lch(54.1 98.7 313.6) |
| OKLCH | oklch(0.634 0.248 305.1) |
Copy-ready code
/* CSS */
color: #af50ff;
background-color: #af50ff;
/* Tailwind (arbitrary) */
class="text-[#af50ff] bg-[#af50ff]"
/* SCSS */
$brand: #af50ff;
/* SwiftUI */
Color(red: 0.686, green: 0.314, blue: 1.000)
/* Android */
Color.parseColor("#af50ff")Accessibility — WCAG contrast
Aa
#af50ff on white: 3.88:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#af50ff on black: 5.41:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green31.4%
Blue100.0%
CMYK percentages
Cyan31.4%
Magenta68.6%
Yellow0.0%
Key (black)0.0%
Color previews
#af50ff text on a black background
contrast 5.41:1
Card sample
#af50ff text on a white background
contrast 3.88:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #af50ff;
Background color
Panel with #af50ff background
background-color: #af50ff;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #af50ff;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 80, 255, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 80, 255, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af50ff; background: linear-gradient(135deg, #af50ff, #FF50DA);