#af7aff
a light, electric violet · warm · closest name: slateblue
RGB
175, 122, 255
HSL
264°, 100%, 74%
CMYK
31, 52, 0, 0
Luminance
0.3025
Every format
| HEX | #af7aff |
| RGB | rgb(175, 122, 255) |
| HSL | hsl(264, 100%, 74%) |
| CMYK | cmyk(31%, 52%, 0%, 0%) |
| LAB | lab(61.9 47.2 -59.0) |
| LCH | lch(61.9 75.5 308.7) |
| OKLCH | oklch(0.691 0.192 299.8) |
Copy-ready code
/* CSS */
color: #af7aff;
background-color: #af7aff;
/* Tailwind (arbitrary) */
class="text-[#af7aff] bg-[#af7aff]"
/* SCSS */
$brand: #af7aff;
/* SwiftUI */
Color(red: 0.686, green: 0.478, blue: 1.000)
/* Android */
Color.parseColor("#af7aff")Accessibility — WCAG contrast
Aa
#af7aff on white: 2.98:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#af7aff on black: 7.05:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green47.8%
Blue100.0%
CMYK percentages
Cyan31.4%
Magenta52.2%
Yellow0.0%
Key (black)0.0%
Color previews
#af7aff text on a black background
contrast 7.05:1
Card sample
#af7aff text on a white background
contrast 2.98:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #af7aff;
Background color
Panel with #af7aff background
background-color: #af7aff;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #af7aff;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 122, 255, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 122, 255, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af7aff; background: linear-gradient(135deg, #af7aff, #FF7AF6);