#af4cef
a balanced, electric violet · warm · closest name: slateblue
RGB
175, 76, 239
HSL
276°, 84%, 62%
CMYK
27, 68, 0, 6
Luminance
0.2051
Every format
| HEX | #af4cef |
| RGB | rgb(175, 76, 239) |
| HSL | hsl(276, 84%, 62%) |
| CMYK | cmyk(27%, 68%, 0%, 6%) |
| LAB | lab(52.4 66.3 -65.3) |
| LCH | lch(52.4 93.1 315.5) |
| OKLCH | oklch(0.619 0.237 308.9) |
Copy-ready code
/* CSS */
color: #af4cef;
background-color: #af4cef;
/* Tailwind (arbitrary) */
class="text-[#af4cef] bg-[#af4cef]"
/* SCSS */
$brand: #af4cef;
/* SwiftUI */
Color(red: 0.686, green: 0.298, blue: 0.937)
/* Android */
Color.parseColor("#af4cef")Accessibility — WCAG contrast
Aa
#af4cef on white: 4.12:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#af4cef on black: 5.10:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green29.8%
Blue93.7%
CMYK percentages
Cyan26.8%
Magenta68.2%
Yellow0.0%
Key (black)6.3%
Color previews
#af4cef text on a black background
contrast 5.10:1
Card sample
#af4cef text on a white background
contrast 4.12:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #af4cef;
Background color
Panel with #af4cef background
background-color: #af4cef;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #af4cef;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 76, 239, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 76, 239, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af4cef; background: linear-gradient(135deg, #af4cef, #EF4CC3);