#af80ec
a light, vivid violet · warm · closest name: slateblue
RGB
175, 128, 236
HSL
266°, 74%, 71%
CMYK
26, 46, 0, 8
Luminance
0.3061
Every format
| HEX | #af80ec |
| RGB | rgb(175, 128, 236) |
| HSL | hsl(266, 74%, 71%) |
| CMYK | cmyk(26%, 46%, 0%, 8%) |
| LAB | lab(62.2 39.4 -48.0) |
| LCH | lch(62.2 62.1 309.4) |
| OKLCH | oklch(0.690 0.159 302.5) |
Copy-ready code
/* CSS */
color: #af80ec;
background-color: #af80ec;
/* Tailwind (arbitrary) */
class="text-[#af80ec] bg-[#af80ec]"
/* SCSS */
$brand: #af80ec;
/* SwiftUI */
Color(red: 0.686, green: 0.502, blue: 0.925)
/* Android */
Color.parseColor("#af80ec")Accessibility — WCAG contrast
Aa
#af80ec on white: 2.95:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#af80ec on black: 7.12:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green50.2%
Blue92.5%
CMYK percentages
Cyan25.8%
Magenta45.8%
Yellow0.0%
Key (black)7.5%
Color previews
#af80ec text on a black background
contrast 7.12:1
Card sample
#af80ec text on a white background
contrast 2.95:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #af80ec;
Background color
Panel with #af80ec background
background-color: #af80ec;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #af80ec;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 128, 236, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 128, 236, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af80ec; background: linear-gradient(135deg, #af80ec, #EC80E1);