#af96db
a light, vivid violet · warm · closest name: plum
RGB
175, 150, 219
HSL
262°, 49%, 72%
CMYK
20, 32, 0, 14
Luminance
0.3604
Every format
| HEX | #af96db |
| RGB | rgb(175, 150, 219) |
| HSL | hsl(262, 49%, 72%) |
| CMYK | cmyk(20%, 32%, 0%, 14%) |
| LAB | lab(66.5 23.1 -31.7) |
| LCH | lch(66.5 39.3 306.0) |
| OKLCH | oklch(0.721 0.102 300.5) |
Copy-ready code
/* CSS */
color: #af96db;
background-color: #af96db;
/* Tailwind (arbitrary) */
class="text-[#af96db] bg-[#af96db]"
/* SCSS */
$brand: #af96db;
/* SwiftUI */
Color(red: 0.686, green: 0.588, blue: 0.859)
/* Android */
Color.parseColor("#af96db")Accessibility — WCAG contrast
Aa
#af96db on white: 2.56:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#af96db on black: 8.21:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green58.8%
Blue85.9%
CMYK percentages
Cyan20.1%
Magenta31.5%
Yellow0.0%
Key (black)14.1%
Color previews
#af96db text on a black background
contrast 8.21:1
Card sample
#af96db text on a white background
contrast 2.56:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #af96db;
Background color
Panel with #af96db background
background-color: #af96db;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #af96db;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 150, 219, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 150, 219, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af96db; background: linear-gradient(135deg, #af96db, #DB96D9);