#af89ff
a light, electric violet · warm · closest name: slateblue
RGB
175, 137, 255
HSL
259°, 100%, 77%
CMYK
31, 46, 0, 0
Luminance
0.3423
Every format
| HEX | #af89ff |
| RGB | rgb(175, 137, 255) |
| HSL | hsl(259, 100%, 77%) |
| CMYK | cmyk(31%, 46%, 0%, 0%) |
| LAB | lab(65.1 39.0 -53.8) |
| LCH | lch(65.1 66.4 306.0) |
| OKLCH | oklch(0.715 0.169 296.7) |
Copy-ready code
/* CSS */
color: #af89ff;
background-color: #af89ff;
/* Tailwind (arbitrary) */
class="text-[#af89ff] bg-[#af89ff]"
/* SCSS */
$brand: #af89ff;
/* SwiftUI */
Color(red: 0.686, green: 0.537, blue: 1.000)
/* Android */
Color.parseColor("#af89ff")Accessibility — WCAG contrast
Aa
#af89ff on white: 2.68:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#af89ff on black: 7.85:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green53.7%
Blue100.0%
CMYK percentages
Cyan31.4%
Magenta46.3%
Yellow0.0%
Key (black)0.0%
Color previews
#af89ff text on a black background
contrast 7.85:1
Card sample
#af89ff text on a white background
contrast 2.68:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #af89ff;
Background color
Panel with #af89ff background
background-color: #af89ff;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #af89ff;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 137, 255, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 137, 255, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af89ff; background: linear-gradient(135deg, #af89ff, #FE89FF);