#af87f0
a light, electric violet · warm · closest name: slateblue
RGB
175, 135, 240
HSL
263°, 78%, 74%
CMYK
27, 44, 0, 6
Luminance
0.3273
Every format
| HEX | #af87f0 |
| RGB | rgb(175, 135, 240) |
| HSL | hsl(263, 78%, 74%) |
| CMYK | cmyk(27%, 44%, 0%, 6%) |
| LAB | lab(63.9 36.5 -47.4) |
| LCH | lch(63.9 59.8 307.6) |
| OKLCH | oklch(0.704 0.153 300.1) |
Copy-ready code
/* CSS */
color: #af87f0;
background-color: #af87f0;
/* Tailwind (arbitrary) */
class="text-[#af87f0] bg-[#af87f0]"
/* SCSS */
$brand: #af87f0;
/* SwiftUI */
Color(red: 0.686, green: 0.529, blue: 0.941)
/* Android */
Color.parseColor("#af87f0")Accessibility — WCAG contrast
Aa
#af87f0 on white: 2.78:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#af87f0 on black: 7.55:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green52.9%
Blue94.1%
CMYK percentages
Cyan27.1%
Magenta43.8%
Yellow0.0%
Key (black)5.9%
Color previews
#af87f0 text on a black background
contrast 7.55:1
Card sample
#af87f0 text on a white background
contrast 2.78:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #af87f0;
Background color
Panel with #af87f0 background
background-color: #af87f0;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #af87f0;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 135, 240, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 135, 240, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af87f0; background: linear-gradient(135deg, #af87f0, #F087EB);