#af4cff
a balanced, electric violet · warm · closest name: magenta
RGB
175, 76, 255
HSL
273°, 100%, 65%
CMYK
31, 70, 0, 0
Luminance
0.2150
Every format
| HEX | #af4cff |
| RGB | rgb(175, 76, 255) |
| HSL | hsl(273, 100%, 65%) |
| CMYK | cmyk(31%, 70%, 0%, 0%) |
| LAB | lab(53.5 69.8 -72.4) |
| LCH | lch(53.5 100.6 313.9) |
| OKLCH | oklch(0.630 0.253 305.5) |
Copy-ready code
/* CSS */
color: #af4cff;
background-color: #af4cff;
/* Tailwind (arbitrary) */
class="text-[#af4cff] bg-[#af4cff]"
/* SCSS */
$brand: #af4cff;
/* SwiftUI */
Color(red: 0.686, green: 0.298, blue: 1.000)
/* Android */
Color.parseColor("#af4cff")Accessibility — WCAG contrast
Aa
#af4cff on white: 3.96:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#af4cff on black: 5.30:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green29.8%
Blue100.0%
CMYK percentages
Cyan31.4%
Magenta70.2%
Yellow0.0%
Key (black)0.0%
Color previews
#af4cff text on a black background
contrast 5.30:1
Card sample
#af4cff text on a white background
contrast 3.96:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #af4cff;
Background color
Panel with #af4cff background
background-color: #af4cff;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #af4cff;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 76, 255, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 76, 255, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af4cff; background: linear-gradient(135deg, #af4cff, #FF4CD8);