#af96ce
a light, soft violet · warm · closest name: plum
RGB
175, 150, 206
HSL
267°, 36%, 70%
CMYK
15, 27, 0, 19
Luminance
0.3538
Every format
| HEX | #af96ce |
| RGB | rgb(175, 150, 206) |
| HSL | hsl(267, 36%, 70%) |
| CMYK | cmyk(15%, 27%, 0%, 19%) |
| LAB | lab(66.0 20.2 -25.3) |
| LCH | lch(66.0 32.4 308.6) |
| OKLCH | oklch(0.715 0.084 304.7) |
Copy-ready code
/* CSS */
color: #af96ce;
background-color: #af96ce;
/* Tailwind (arbitrary) */
class="text-[#af96ce] bg-[#af96ce]"
/* SCSS */
$brand: #af96ce;
/* SwiftUI */
Color(red: 0.686, green: 0.588, blue: 0.808)
/* Android */
Color.parseColor("#af96ce")Accessibility — WCAG contrast
Aa
#af96ce on white: 2.60:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#af96ce on black: 8.08:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green58.8%
Blue80.8%
CMYK percentages
Cyan15.0%
Magenta27.2%
Yellow0.0%
Key (black)19.2%
Color previews
#af96ce text on a black background
contrast 8.08:1
Card sample
#af96ce text on a white background
contrast 2.60:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #af96ce;
Background color
Panel with #af96ce background
background-color: #af96ce;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #af96ce;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 150, 206, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 150, 206, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af96ce; background: linear-gradient(135deg, #af96ce, #CE96C8);