#af86ce
a light, soft violet · warm · closest name: plum
RGB
175, 134, 206
HSL
274°, 42%, 67%
CMYK
15, 35, 0, 19
Luminance
0.3062
Every format
| HEX | #af86ce |
| RGB | rgb(175, 134, 206) |
| HSL | hsl(274, 42%, 67%) |
| CMYK | cmyk(15%, 35%, 0%, 19%) |
| LAB | lab(62.2 29.2 -31.3) |
| LCH | lch(62.2 42.8 313.1) |
| OKLCH | oklch(0.686 0.112 309.8) |
Copy-ready code
/* CSS */
color: #af86ce;
background-color: #af86ce;
/* Tailwind (arbitrary) */
class="text-[#af86ce] bg-[#af86ce]"
/* SCSS */
$brand: #af86ce;
/* SwiftUI */
Color(red: 0.686, green: 0.525, blue: 0.808)
/* Android */
Color.parseColor("#af86ce")Accessibility — WCAG contrast
Aa
#af86ce on white: 2.95:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#af86ce on black: 7.12:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green52.5%
Blue80.8%
CMYK percentages
Cyan15.0%
Magenta35.0%
Yellow0.0%
Key (black)19.2%
Color previews
#af86ce text on a black background
contrast 7.12:1
Card sample
#af86ce text on a white background
contrast 2.95:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #af86ce;
Background color
Panel with #af86ce background
background-color: #af86ce;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #af86ce;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 134, 206, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 134, 206, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af86ce; background: linear-gradient(135deg, #af86ce, #CE86BD);