#af7ffc
a light, electric violet · warm · closest name: slateblue
RGB
175, 127, 252
HSL
263°, 95%, 74%
CMYK
31, 50, 0, 1
Luminance
0.3132
Every format
| HEX | #af7ffc |
| RGB | rgb(175, 127, 252) |
| HSL | hsl(263, 95%, 74%) |
| CMYK | cmyk(31%, 50%, 0%, 1%) |
| LAB | lab(62.8 43.8 -55.9) |
| LCH | lch(62.8 71.0 308.1) |
| OKLCH | oklch(0.697 0.181 299.4) |
Copy-ready code
/* CSS */
color: #af7ffc;
background-color: #af7ffc;
/* Tailwind (arbitrary) */
class="text-[#af7ffc] bg-[#af7ffc]"
/* SCSS */
$brand: #af7ffc;
/* SwiftUI */
Color(red: 0.686, green: 0.498, blue: 0.988)
/* Android */
Color.parseColor("#af7ffc")Accessibility — WCAG contrast
Aa
#af7ffc on white: 2.89:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#af7ffc on black: 7.26:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green49.8%
Blue98.8%
CMYK percentages
Cyan30.6%
Magenta49.6%
Yellow0.0%
Key (black)1.2%
Color previews
#af7ffc text on a black background
contrast 7.26:1
Card sample
#af7ffc text on a white background
contrast 2.89:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #af7ffc;
Background color
Panel with #af7ffc background
background-color: #af7ffc;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #af7ffc;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 127, 252, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 127, 252, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af7ffc; background: linear-gradient(135deg, #af7ffc, #FC7FF6);