#af50ec
a balanced, electric violet · warm · closest name: slateblue
RGB
175, 80, 236
HSL
277°, 80%, 62%
CMYK
26, 66, 0, 8
Luminance
0.2091
Every format
| HEX | #af50ec |
| RGB | rgb(175, 80, 236) |
| HSL | hsl(277, 80%, 62%) |
| CMYK | cmyk(26%, 66%, 0%, 8%) |
| LAB | lab(52.9 63.9 -62.9) |
| LCH | lch(52.9 89.7 315.5) |
| OKLCH | oklch(0.622 0.229 309.2) |
Copy-ready code
/* CSS */
color: #af50ec;
background-color: #af50ec;
/* Tailwind (arbitrary) */
class="text-[#af50ec] bg-[#af50ec]"
/* SCSS */
$brand: #af50ec;
/* SwiftUI */
Color(red: 0.686, green: 0.314, blue: 0.925)
/* Android */
Color.parseColor("#af50ec")Accessibility — WCAG contrast
Aa
#af50ec on white: 4.05:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#af50ec on black: 5.18:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green31.4%
Blue92.5%
CMYK percentages
Cyan25.8%
Magenta66.1%
Yellow0.0%
Key (black)7.5%
Color previews
#af50ec text on a black background
contrast 5.18:1
Card sample
#af50ec text on a white background
contrast 4.05:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #af50ec;
Background color
Panel with #af50ec background
background-color: #af50ec;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #af50ec;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 80, 236, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 80, 236, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af50ec; background: linear-gradient(135deg, #af50ec, #EC50C1);