#af98df
a light, vivid violet · warm · closest name: plum
RGB
175, 152, 223
HSL
259°, 53%, 74%
CMYK
22, 32, 0, 13
Luminance
0.3690
Every format
| HEX | #af98df |
| RGB | rgb(175, 152, 223) |
| HSL | hsl(259, 53%, 74%) |
| CMYK | cmyk(22%, 32%, 0%, 13%) |
| LAB | lab(67.2 22.9 -32.9) |
| LCH | lch(67.2 40.1 304.8) |
| OKLCH | oklch(0.726 0.104 298.7) |
Copy-ready code
/* CSS */
color: #af98df;
background-color: #af98df;
/* Tailwind (arbitrary) */
class="text-[#af98df] bg-[#af98df]"
/* SCSS */
$brand: #af98df;
/* SwiftUI */
Color(red: 0.686, green: 0.596, blue: 0.875)
/* Android */
Color.parseColor("#af98df")Accessibility — WCAG contrast
Aa
#af98df on white: 2.51:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#af98df on black: 8.38:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green59.6%
Blue87.5%
CMYK percentages
Cyan21.5%
Magenta31.8%
Yellow0.0%
Key (black)12.5%
Color previews
#af98df text on a black background
contrast 8.38:1
Card sample
#af98df text on a white background
contrast 2.51:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #af98df;
Background color
Panel with #af98df background
background-color: #af98df;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #af98df;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 152, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 152, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af98df; background: linear-gradient(135deg, #af98df, #DE98DF);