#af4ee4
a balanced, vivid violet · warm · closest name: slateblue
RGB
175, 78, 228
HSL
279°, 74%, 60%
CMYK
23, 66, 0, 11
Luminance
0.2016
Every format
| HEX | #af4ee4 |
| RGB | rgb(175, 78, 228) |
| HSL | hsl(279, 74%, 60%) |
| CMYK | cmyk(23%, 66%, 0%, 11%) |
| LAB | lab(52.0 63.1 -59.7) |
| LCH | lch(52.0 86.9 316.6) |
| OKLCH | oklch(0.614 0.224 311.3) |
Copy-ready code
/* CSS */
color: #af4ee4;
background-color: #af4ee4;
/* Tailwind (arbitrary) */
class="text-[#af4ee4] bg-[#af4ee4]"
/* SCSS */
$brand: #af4ee4;
/* SwiftUI */
Color(red: 0.686, green: 0.306, blue: 0.894)
/* Android */
Color.parseColor("#af4ee4")Accessibility — WCAG contrast
Aa
#af4ee4 on white: 4.17:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#af4ee4 on black: 5.03:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green30.6%
Blue89.4%
CMYK percentages
Cyan23.2%
Magenta65.8%
Yellow0.0%
Key (black)10.6%
Color previews
#af4ee4 text on a black background
contrast 5.03:1
Card sample
#af4ee4 text on a white background
contrast 4.17:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #af4ee4;
Background color
Panel with #af4ee4 background
background-color: #af4ee4;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #af4ee4;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 78, 228, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 78, 228, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af4ee4; background: linear-gradient(135deg, #af4ee4, #E44EB5);