#af79ff
a light, electric violet · warm · closest name: slateblue
RGB
175, 121, 255
HSL
264°, 100%, 74%
CMYK
31, 53, 0, 0
Luminance
0.3001
Every format
| HEX | #af79ff |
| RGB | rgb(175, 121, 255) |
| HSL | hsl(264, 100%, 74%) |
| CMYK | cmyk(31%, 53%, 0%, 0%) |
| LAB | lab(61.7 47.8 -59.3) |
| LCH | lch(61.7 76.2 308.9) |
| OKLCH | oklch(0.689 0.193 300.0) |
Copy-ready code
/* CSS */
color: #af79ff;
background-color: #af79ff;
/* Tailwind (arbitrary) */
class="text-[#af79ff] bg-[#af79ff]"
/* SCSS */
$brand: #af79ff;
/* SwiftUI */
Color(red: 0.686, green: 0.475, blue: 1.000)
/* Android */
Color.parseColor("#af79ff")Accessibility — WCAG contrast
Aa
#af79ff on white: 3.00:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#af79ff on black: 7.00:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green47.5%
Blue100.0%
CMYK percentages
Cyan31.4%
Magenta52.5%
Yellow0.0%
Key (black)0.0%
Color previews
#af79ff text on a black background
contrast 7.00:1
Card sample
#af79ff text on a white background
contrast 3.00:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #af79ff;
Background color
Panel with #af79ff background
background-color: #af79ff;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #af79ff;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 121, 255, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 121, 255, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af79ff; background: linear-gradient(135deg, #af79ff, #FF79F6);