#af74ff
a light, electric violet · warm · closest name: slateblue
RGB
175, 116, 255
HSL
266°, 100%, 73%
CMYK
31, 55, 0, 0
Luminance
0.2882
Every format
| HEX | #af74ff |
| RGB | rgb(175, 116, 255) |
| HSL | hsl(266, 100%, 73%) |
| CMYK | cmyk(31%, 55%, 0%, 0%) |
| LAB | lab(60.6 50.5 -61.0) |
| LCH | lch(60.6 79.1 309.6) |
| OKLCH | oklch(0.682 0.201 300.8) |
Copy-ready code
/* CSS */
color: #af74ff;
background-color: #af74ff;
/* Tailwind (arbitrary) */
class="text-[#af74ff] bg-[#af74ff]"
/* SCSS */
$brand: #af74ff;
/* SwiftUI */
Color(red: 0.686, green: 0.455, blue: 1.000)
/* Android */
Color.parseColor("#af74ff")Accessibility — WCAG contrast
Aa
#af74ff on white: 3.10:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#af74ff on black: 6.76:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green45.5%
Blue100.0%
CMYK percentages
Cyan31.4%
Magenta54.5%
Yellow0.0%
Key (black)0.0%
Color previews
#af74ff text on a black background
contrast 6.76:1
Card sample
#af74ff text on a white background
contrast 3.10:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #af74ff;
Background color
Panel with #af74ff background
background-color: #af74ff;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #af74ff;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 116, 255, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 116, 255, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af74ff; background: linear-gradient(135deg, #af74ff, #FF74F2);