#af98ce
a light, soft violet · warm · closest name: plum
RGB
175, 152, 206
HSL
266°, 36%, 70%
CMYK
15, 26, 0, 19
Luminance
0.3603
Every format
| HEX | #af98ce |
| RGB | rgb(175, 152, 206) |
| HSL | hsl(266, 36%, 70%) |
| CMYK | cmyk(15%, 26%, 0%, 19%) |
| LAB | lab(66.5 19.1 -24.5) |
| LCH | lch(66.5 31.1 307.8) |
| OKLCH | oklch(0.719 0.081 303.9) |
Copy-ready code
/* CSS */
color: #af98ce;
background-color: #af98ce;
/* Tailwind (arbitrary) */
class="text-[#af98ce] bg-[#af98ce]"
/* SCSS */
$brand: #af98ce;
/* SwiftUI */
Color(red: 0.686, green: 0.596, blue: 0.808)
/* Android */
Color.parseColor("#af98ce")Accessibility — WCAG contrast
Aa
#af98ce on white: 2.56:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#af98ce on black: 8.21:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green59.6%
Blue80.8%
CMYK percentages
Cyan15.0%
Magenta26.2%
Yellow0.0%
Key (black)19.2%
Color previews
#af98ce text on a black background
contrast 8.21:1
Card sample
#af98ce text on a white background
contrast 2.56:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #af98ce;
Background color
Panel with #af98ce background
background-color: #af98ce;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #af98ce;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 152, 206, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 152, 206, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af98ce; background: linear-gradient(135deg, #af98ce, #CE98C9);