#afdf49
a balanced, vivid green · cool · closest name: olivedrab
RGB
175, 223, 73
HSL
79°, 70%, 58%
CMYK
22, 0, 67, 13
Luminance
0.6237
Every format
| HEX | #afdf49 |
| RGB | rgb(175, 223, 73) |
| HSL | hsl(79, 70%, 58%) |
| CMYK | cmyk(22%, 0%, 67%, 13%) |
| LAB | lab(83.1 -36.7 65.4) |
| LCH | lch(83.1 75.0 119.3) |
| OKLCH | oklch(0.842 0.182 125.5) |
Copy-ready code
/* CSS */
color: #afdf49;
background-color: #afdf49;
/* Tailwind (arbitrary) */
class="text-[#afdf49] bg-[#afdf49]"
/* SCSS */
$brand: #afdf49;
/* SwiftUI */
Color(red: 0.686, green: 0.875, blue: 0.286)
/* Android */
Color.parseColor("#afdf49")Accessibility — WCAG contrast
Aa
#afdf49 on white: 1.56:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#afdf49 on black: 13.47:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green87.5%
Blue28.6%
CMYK percentages
Cyan21.5%
Magenta0.0%
Yellow67.3%
Key (black)12.5%
Color previews
#afdf49 text on a black background
contrast 13.47:1
Card sample
#afdf49 text on a white background
contrast 1.56:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #afdf49;
Background color
Panel with #afdf49 background
background-color: #afdf49;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #afdf49;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 223, 73, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 223, 73, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afdf49; background: linear-gradient(135deg, #afdf49, #4BDF49);