#af7cfa
a light, electric violet · warm · closest name: slateblue
RGB
175, 124, 250
HSL
264°, 93%, 73%
CMYK
30, 50, 0, 2
Luminance
0.3043
Every format
| HEX | #af7cfa |
| RGB | rgb(175, 124, 250) |
| HSL | hsl(264, 93%, 73%) |
| CMYK | cmyk(30%, 50%, 0%, 2%) |
| LAB | lab(62.0 44.9 -56.0) |
| LCH | lch(62.0 71.8 308.8) |
| OKLCH | oklch(0.691 0.183 300.4) |
Copy-ready code
/* CSS */
color: #af7cfa;
background-color: #af7cfa;
/* Tailwind (arbitrary) */
class="text-[#af7cfa] bg-[#af7cfa]"
/* SCSS */
$brand: #af7cfa;
/* SwiftUI */
Color(red: 0.686, green: 0.486, blue: 0.980)
/* Android */
Color.parseColor("#af7cfa")Accessibility — WCAG contrast
Aa
#af7cfa on white: 2.96:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#af7cfa on black: 7.09:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green48.6%
Blue98.0%
CMYK percentages
Cyan30.0%
Magenta50.4%
Yellow0.0%
Key (black)2.0%
Color previews
#af7cfa text on a black background
contrast 7.09:1
Card sample
#af7cfa text on a white background
contrast 2.96:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #af7cfa;
Background color
Panel with #af7cfa background
background-color: #af7cfa;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #af7cfa;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 124, 250, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 124, 250, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af7cfa; background: linear-gradient(135deg, #af7cfa, #FA7CF1);