#af7cd4
a light, vivid violet · warm · closest name: orchid
RGB
175, 124, 212
HSL
275°, 51%, 66%
CMYK
18, 42, 0, 17
Luminance
0.2828
Every format
| HEX | #af7cd4 |
| RGB | rgb(175, 124, 212) |
| HSL | hsl(275, 51%, 66%) |
| CMYK | cmyk(18%, 42%, 0%, 17%) |
| LAB | lab(60.1 36.1 -37.8) |
| LCH | lch(60.1 52.3 313.7) |
| OKLCH | oklch(0.671 0.137 309.8) |
Copy-ready code
/* CSS */
color: #af7cd4;
background-color: #af7cd4;
/* Tailwind (arbitrary) */
class="text-[#af7cd4] bg-[#af7cd4]"
/* SCSS */
$brand: #af7cd4;
/* SwiftUI */
Color(red: 0.686, green: 0.486, blue: 0.831)
/* Android */
Color.parseColor("#af7cd4")Accessibility — WCAG contrast
Aa
#af7cd4 on white: 3.15:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#af7cd4 on black: 6.66:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green48.6%
Blue83.1%
CMYK percentages
Cyan17.5%
Magenta41.5%
Yellow0.0%
Key (black)16.9%
Color previews
#af7cd4 text on a black background
contrast 6.66:1
Card sample
#af7cd4 text on a white background
contrast 3.15:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #af7cd4;
Background color
Panel with #af7cd4 background
background-color: #af7cd4;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #af7cd4;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 124, 212, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 124, 212, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af7cd4; background: linear-gradient(135deg, #af7cd4, #D47CBE);