#af6ce4
a light, vivid violet · warm · closest name: slateblue
RGB
175, 108, 228
HSL
274°, 69%, 66%
CMYK
23, 53, 0, 11
Luminance
0.2544
Every format
| HEX | #af6ce4 |
| RGB | rgb(175, 108, 228) |
| HSL | hsl(274, 69%, 66%) |
| CMYK | cmyk(23%, 53%, 0%, 11%) |
| LAB | lab(57.5 48.4 -51.0) |
| LCH | lch(57.5 70.3 313.5) |
| OKLCH | oklch(0.654 0.181 307.9) |
Copy-ready code
/* CSS */
color: #af6ce4;
background-color: #af6ce4;
/* Tailwind (arbitrary) */
class="text-[#af6ce4] bg-[#af6ce4]"
/* SCSS */
$brand: #af6ce4;
/* SwiftUI */
Color(red: 0.686, green: 0.424, blue: 0.894)
/* Android */
Color.parseColor("#af6ce4")Accessibility — WCAG contrast
Aa
#af6ce4 on white: 3.45:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#af6ce4 on black: 6.09:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green42.4%
Blue89.4%
CMYK percentages
Cyan23.2%
Magenta52.6%
Yellow0.0%
Key (black)10.6%
Color previews
#af6ce4 text on a black background
contrast 6.09:1
Card sample
#af6ce4 text on a white background
contrast 3.45:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #af6ce4;
Background color
Panel with #af6ce4 background
background-color: #af6ce4;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #af6ce4;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 108, 228, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 108, 228, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af6ce4; background: linear-gradient(135deg, #af6ce4, #E46CC9);