#af7cf0
a light, electric violet · warm · closest name: slateblue
RGB
175, 124, 240
HSL
266°, 80%, 71%
CMYK
27, 48, 0, 6
Luminance
0.2982
Every format
| HEX | #af7cf0 |
| RGB | rgb(175, 124, 240) |
| HSL | hsl(266, 80%, 71%) |
| CMYK | cmyk(27%, 48%, 0%, 6%) |
| LAB | lab(61.5 42.5 -51.3) |
| LCH | lch(61.5 66.6 309.7) |
| OKLCH | oklch(0.686 0.171 302.4) |
Copy-ready code
/* CSS */
color: #af7cf0;
background-color: #af7cf0;
/* Tailwind (arbitrary) */
class="text-[#af7cf0] bg-[#af7cf0]"
/* SCSS */
$brand: #af7cf0;
/* SwiftUI */
Color(red: 0.686, green: 0.486, blue: 0.941)
/* Android */
Color.parseColor("#af7cf0")Accessibility — WCAG contrast
Aa
#af7cf0 on white: 3.02:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#af7cf0 on black: 6.96:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green48.6%
Blue94.1%
CMYK percentages
Cyan27.1%
Magenta48.3%
Yellow0.0%
Key (black)5.9%
Color previews
#af7cf0 text on a black background
contrast 6.96:1
Card sample
#af7cf0 text on a white background
contrast 3.02:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #af7cf0;
Background color
Panel with #af7cf0 background
background-color: #af7cf0;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #af7cf0;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 124, 240, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 124, 240, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af7cf0; background: linear-gradient(135deg, #af7cf0, #F07CE4);