#af80f9
a light, electric violet · warm · closest name: slateblue
RGB
175, 128, 249
HSL
263°, 91%, 74%
CMYK
30, 49, 0, 2
Luminance
0.3139
Every format
| HEX | #af80f9 |
| RGB | rgb(175, 128, 249) |
| HSL | hsl(263, 91%, 74%) |
| CMYK | cmyk(30%, 49%, 0%, 2%) |
| LAB | lab(62.8 42.5 -54.1) |
| LCH | lch(62.8 68.8 308.1) |
| OKLCH | oklch(0.697 0.175 299.8) |
Copy-ready code
/* CSS */
color: #af80f9;
background-color: #af80f9;
/* Tailwind (arbitrary) */
class="text-[#af80f9] bg-[#af80f9]"
/* SCSS */
$brand: #af80f9;
/* SwiftUI */
Color(red: 0.686, green: 0.502, blue: 0.976)
/* Android */
Color.parseColor("#af80f9")Accessibility — WCAG contrast
Aa
#af80f9 on white: 2.89:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#af80f9 on black: 7.28:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green50.2%
Blue97.6%
CMYK percentages
Cyan29.7%
Magenta48.6%
Yellow0.0%
Key (black)2.4%
Color previews
#af80f9 text on a black background
contrast 7.28:1
Card sample
#af80f9 text on a white background
contrast 2.89:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #af80f9;
Background color
Panel with #af80f9 background
background-color: #af80f9;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #af80f9;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 128, 249, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 128, 249, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af80f9; background: linear-gradient(135deg, #af80f9, #F980F2);