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