#af7eff
a light, electric violet · warm · closest name: slateblue
RGB
175, 126, 255
HSL
263°, 100%, 75%
CMYK
31, 51, 0, 0
Luminance
0.3126
Every format
| HEX | #af7eff |
| RGB | rgb(175, 126, 255) |
| HSL | hsl(263, 100%, 75%) |
| CMYK | cmyk(31%, 51%, 0%, 0%) |
| LAB | lab(62.7 45.1 -57.6) |
| LCH | lch(62.7 73.1 308.0) |
| OKLCH | oklch(0.697 0.186 299.1) |
Copy-ready code
/* CSS */
color: #af7eff;
background-color: #af7eff;
/* Tailwind (arbitrary) */
class="text-[#af7eff] bg-[#af7eff]"
/* SCSS */
$brand: #af7eff;
/* SwiftUI */
Color(red: 0.686, green: 0.494, blue: 1.000)
/* Android */
Color.parseColor("#af7eff")Accessibility — WCAG contrast
Aa
#af7eff on white: 2.90:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#af7eff on black: 7.25:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green49.4%
Blue100.0%
CMYK percentages
Cyan31.4%
Magenta50.6%
Yellow0.0%
Key (black)0.0%
Color previews
#af7eff text on a black background
contrast 7.25:1
Card sample
#af7eff text on a white background
contrast 2.90:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #af7eff;
Background color
Panel with #af7eff background
background-color: #af7eff;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #af7eff;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 126, 255, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 126, 255, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af7eff; background: linear-gradient(135deg, #af7eff, #FF7EF9);