#af7ef1
a light, electric violet · warm · closest name: slateblue
RGB
175, 126, 241
HSL
266°, 80%, 72%
CMYK
27, 48, 0, 6
Luminance
0.3039
Every format
| HEX | #af7ef1 |
| RGB | rgb(175, 126, 241) |
| HSL | hsl(266, 80%, 72%) |
| CMYK | cmyk(27%, 48%, 0%, 6%) |
| LAB | lab(62.0 41.7 -51.1) |
| LCH | lch(62.0 65.9 309.2) |
| OKLCH | oklch(0.689 0.169 301.8) |
Copy-ready code
/* CSS */
color: #af7ef1;
background-color: #af7ef1;
/* Tailwind (arbitrary) */
class="text-[#af7ef1] bg-[#af7ef1]"
/* SCSS */
$brand: #af7ef1;
/* SwiftUI */
Color(red: 0.686, green: 0.494, blue: 0.945)
/* Android */
Color.parseColor("#af7ef1")Accessibility — WCAG contrast
Aa
#af7ef1 on white: 2.97:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#af7ef1 on black: 7.08:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green49.4%
Blue94.5%
CMYK percentages
Cyan27.4%
Magenta47.7%
Yellow0.0%
Key (black)5.5%
Color previews
#af7ef1 text on a black background
contrast 7.08:1
Card sample
#af7ef1 text on a white background
contrast 2.97:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #af7ef1;
Background color
Panel with #af7ef1 background
background-color: #af7ef1;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #af7ef1;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 126, 241, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 126, 241, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af7ef1; background: linear-gradient(135deg, #af7ef1, #F17EE6);