#af58ff
a light, electric violet · warm · closest name: slateblue
RGB
175, 88, 255
HSL
271°, 100%, 67%
CMYK
31, 66, 0, 0
Luminance
0.2331
Every format
| HEX | #af58ff |
| RGB | rgb(175, 88, 255) |
| HSL | hsl(271, 100%, 67%) |
| CMYK | cmyk(31%, 66%, 0%, 0%) |
| LAB | lab(55.4 64.5 -69.4) |
| LCH | lch(55.4 94.7 312.9) |
| OKLCH | oklch(0.644 0.239 304.4) |
Copy-ready code
/* CSS */
color: #af58ff;
background-color: #af58ff;
/* Tailwind (arbitrary) */
class="text-[#af58ff] bg-[#af58ff]"
/* SCSS */
$brand: #af58ff;
/* SwiftUI */
Color(red: 0.686, green: 0.345, blue: 1.000)
/* Android */
Color.parseColor("#af58ff")Accessibility — WCAG contrast
Aa
#af58ff on white: 3.71:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#af58ff on black: 5.66:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green34.5%
Blue100.0%
CMYK percentages
Cyan31.4%
Magenta65.5%
Yellow0.0%
Key (black)0.0%
Color previews
#af58ff text on a black background
contrast 5.66:1
Card sample
#af58ff text on a white background
contrast 3.71:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #af58ff;
Background color
Panel with #af58ff background
background-color: #af58ff;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #af58ff;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 88, 255, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 88, 255, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af58ff; background: linear-gradient(135deg, #af58ff, #FF58E0);