#af7eca
a balanced, soft violet · warm · closest name: plum
RGB
175, 126, 202
HSL
279°, 42%, 64%
CMYK
13, 38, 0, 21
Luminance
0.2830
Every format
| HEX | #af7eca |
| RGB | rgb(175, 126, 202) |
| HSL | hsl(279, 42%, 64%) |
| CMYK | cmyk(13%, 38%, 0%, 21%) |
| LAB | lab(60.2 32.8 -32.1) |
| LCH | lch(60.2 45.9 315.6) |
| OKLCH | oklch(0.670 0.121 312.9) |
Copy-ready code
/* CSS */
color: #af7eca;
background-color: #af7eca;
/* Tailwind (arbitrary) */
class="text-[#af7eca] bg-[#af7eca]"
/* SCSS */
$brand: #af7eca;
/* SwiftUI */
Color(red: 0.686, green: 0.494, blue: 0.792)
/* Android */
Color.parseColor("#af7eca")Accessibility — WCAG contrast
Aa
#af7eca on white: 3.15:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#af7eca on black: 6.66:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green49.4%
Blue79.2%
CMYK percentages
Cyan13.4%
Magenta37.6%
Yellow0.0%
Key (black)20.8%
Color previews
#af7eca text on a black background
contrast 6.66:1
Card sample
#af7eca text on a white background
contrast 3.15:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #af7eca;
Background color
Panel with #af7eca background
background-color: #af7eca;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #af7eca;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 126, 202, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 126, 202, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af7eca; background: linear-gradient(135deg, #af7eca, #CA7EB2);