#af4eeb
a balanced, electric violet · warm · closest name: slateblue
RGB
175, 78, 235
HSL
277°, 80%, 61%
CMYK
26, 67, 0, 8
Luminance
0.2056
Every format
| HEX | #af4eeb |
| RGB | rgb(175, 78, 235) |
| HSL | hsl(277, 80%, 61%) |
| CMYK | cmyk(26%, 67%, 0%, 8%) |
| LAB | lab(52.5 64.6 -62.9) |
| LCH | lch(52.5 90.2 315.8) |
| OKLCH | oklch(0.619 0.231 309.6) |
Copy-ready code
/* CSS */
color: #af4eeb;
background-color: #af4eeb;
/* Tailwind (arbitrary) */
class="text-[#af4eeb] bg-[#af4eeb]"
/* SCSS */
$brand: #af4eeb;
/* SwiftUI */
Color(red: 0.686, green: 0.306, blue: 0.922)
/* Android */
Color.parseColor("#af4eeb")Accessibility — WCAG contrast
Aa
#af4eeb on white: 4.11:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#af4eeb on black: 5.11:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green30.6%
Blue92.2%
CMYK percentages
Cyan25.5%
Magenta66.8%
Yellow0.0%
Key (black)7.8%
Color previews
#af4eeb text on a black background
contrast 5.11:1
Card sample
#af4eeb text on a white background
contrast 4.11:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #af4eeb;
Background color
Panel with #af4eeb background
background-color: #af4eeb;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #af4eeb;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 78, 235, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 78, 235, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af4eeb; background: linear-gradient(135deg, #af4eeb, #EB4EBE);