#af80d2
a light, vivid violet · warm · closest name: plum
RGB
175, 128, 210
HSL
274°, 48%, 66%
CMYK
17, 39, 0, 18
Luminance
0.2921
Every format
| HEX | #af80d2 |
| RGB | rgb(175, 128, 210) |
| HSL | hsl(274, 48%, 66%) |
| CMYK | cmyk(17%, 39%, 0%, 18%) |
| LAB | lab(61.0 33.4 -35.4) |
| LCH | lch(61.0 48.7 313.4) |
| OKLCH | oklch(0.677 0.127 309.7) |
Copy-ready code
/* CSS */
color: #af80d2;
background-color: #af80d2;
/* Tailwind (arbitrary) */
class="text-[#af80d2] bg-[#af80d2]"
/* SCSS */
$brand: #af80d2;
/* SwiftUI */
Color(red: 0.686, green: 0.502, blue: 0.824)
/* Android */
Color.parseColor("#af80d2")Accessibility — WCAG contrast
Aa
#af80d2 on white: 3.07:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#af80d2 on black: 6.84:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green50.2%
Blue82.4%
CMYK percentages
Cyan16.7%
Magenta39.0%
Yellow0.0%
Key (black)17.6%
Color previews
#af80d2 text on a black background
contrast 6.84:1
Card sample
#af80d2 text on a white background
contrast 3.07:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #af80d2;
Background color
Panel with #af80d2 background
background-color: #af80d2;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #af80d2;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 128, 210, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 128, 210, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af80d2; background: linear-gradient(135deg, #af80d2, #D280BE);