#af7ff9
a light, electric violet · warm · closest name: slateblue
RGB
175, 127, 249
HSL
264°, 91%, 74%
CMYK
30, 49, 0, 2
Luminance
0.3113
Every format
| HEX | #af7ff9 |
| RGB | rgb(175, 127, 249) |
| HSL | hsl(264, 91%, 74%) |
| CMYK | cmyk(30%, 49%, 0%, 2%) |
| LAB | lab(62.6 43.1 -54.5) |
| LCH | lch(62.6 69.4 308.3) |
| OKLCH | oklch(0.696 0.177 300.0) |
Copy-ready code
/* CSS */
color: #af7ff9;
background-color: #af7ff9;
/* Tailwind (arbitrary) */
class="text-[#af7ff9] bg-[#af7ff9]"
/* SCSS */
$brand: #af7ff9;
/* SwiftUI */
Color(red: 0.686, green: 0.498, blue: 0.976)
/* Android */
Color.parseColor("#af7ff9")Accessibility — WCAG contrast
Aa
#af7ff9 on white: 2.91:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#af7ff9 on black: 7.23:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green49.8%
Blue97.6%
CMYK percentages
Cyan29.7%
Magenta49.0%
Yellow0.0%
Key (black)2.4%
Color previews
#af7ff9 text on a black background
contrast 7.23:1
Card sample
#af7ff9 text on a white background
contrast 2.91:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #af7ff9;
Background color
Panel with #af7ff9 background
background-color: #af7ff9;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #af7ff9;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 127, 249, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 127, 249, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af7ff9; background: linear-gradient(135deg, #af7ff9, #F97FF2);