#af89fa
a light, electric violet · warm · closest name: slateblue
RGB
175, 137, 250
HSL
260°, 92%, 76%
CMYK
30, 45, 0, 2
Luminance
0.3391
Every format
| HEX | #af89fa |
| RGB | rgb(175, 137, 250) |
| HSL | hsl(260, 92%, 76%) |
| CMYK | cmyk(30%, 45%, 0%, 2%) |
| LAB | lab(64.9 37.8 -51.4) |
| LCH | lch(64.9 63.8 306.3) |
| OKLCH | oklch(0.713 0.163 297.6) |
Copy-ready code
/* CSS */
color: #af89fa;
background-color: #af89fa;
/* Tailwind (arbitrary) */
class="text-[#af89fa] bg-[#af89fa]"
/* SCSS */
$brand: #af89fa;
/* SwiftUI */
Color(red: 0.686, green: 0.537, blue: 0.980)
/* Android */
Color.parseColor("#af89fa")Accessibility — WCAG contrast
Aa
#af89fa on white: 2.70:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#af89fa on black: 7.78:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green53.7%
Blue98.0%
CMYK percentages
Cyan30.0%
Magenta45.2%
Yellow0.0%
Key (black)2.0%
Color previews
#af89fa text on a black background
contrast 7.78:1
Card sample
#af89fa text on a white background
contrast 2.70:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #af89fa;
Background color
Panel with #af89fa background
background-color: #af89fa;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #af89fa;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 137, 250, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 137, 250, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af89fa; background: linear-gradient(135deg, #af89fa, #FA89FA);