#af76ff
a light, electric violet · warm · closest name: slateblue
RGB
175, 118, 255
HSL
265°, 100%, 73%
CMYK
31, 54, 0, 0
Luminance
0.2929
Every format
| HEX | #af76ff |
| RGB | rgb(175, 118, 255) |
| HSL | hsl(265, 100%, 73%) |
| CMYK | cmyk(31%, 54%, 0%, 0%) |
| LAB | lab(61.0 49.4 -60.3) |
| LCH | lch(61.0 77.9 309.3) |
| OKLCH | oklch(0.685 0.198 300.5) |
Copy-ready code
/* CSS */
color: #af76ff;
background-color: #af76ff;
/* Tailwind (arbitrary) */
class="text-[#af76ff] bg-[#af76ff]"
/* SCSS */
$brand: #af76ff;
/* SwiftUI */
Color(red: 0.686, green: 0.463, blue: 1.000)
/* Android */
Color.parseColor("#af76ff")Accessibility — WCAG contrast
Aa
#af76ff on white: 3.06:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#af76ff on black: 6.86:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green46.3%
Blue100.0%
CMYK percentages
Cyan31.4%
Magenta53.7%
Yellow0.0%
Key (black)0.0%
Color previews
#af76ff text on a black background
contrast 6.86:1
Card sample
#af76ff text on a white background
contrast 3.06:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #af76ff;
Background color
Panel with #af76ff background
background-color: #af76ff;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #af76ff;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 118, 255, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 118, 255, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af76ff; background: linear-gradient(135deg, #af76ff, #FF76F4);