#af56ff
a light, electric violet · warm · closest name: slateblue
RGB
175, 86, 255
HSL
272°, 100%, 67%
CMYK
31, 66, 0, 0
Luminance
0.2299
Every format
| HEX | #af56ff |
| RGB | rgb(175, 86, 255) |
| HSL | hsl(272, 100%, 67%) |
| CMYK | cmyk(31%, 66%, 0%, 0%) |
| LAB | lab(55.1 65.4 -69.9) |
| LCH | lch(55.1 95.7 313.1) |
| OKLCH | oklch(0.641 0.241 304.6) |
Copy-ready code
/* CSS */
color: #af56ff;
background-color: #af56ff;
/* Tailwind (arbitrary) */
class="text-[#af56ff] bg-[#af56ff]"
/* SCSS */
$brand: #af56ff;
/* SwiftUI */
Color(red: 0.686, green: 0.337, blue: 1.000)
/* Android */
Color.parseColor("#af56ff")Accessibility — WCAG contrast
Aa
#af56ff on white: 3.75:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#af56ff on black: 5.60:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green33.7%
Blue100.0%
CMYK percentages
Cyan31.4%
Magenta66.3%
Yellow0.0%
Key (black)0.0%
Color previews
#af56ff text on a black background
contrast 5.60:1
Card sample
#af56ff text on a white background
contrast 3.75:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #af56ff;
Background color
Panel with #af56ff background
background-color: #af56ff;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #af56ff;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 86, 255, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 86, 255, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af56ff; background: linear-gradient(135deg, #af56ff, #FF56DE);