#afcc21
a balanced, vivid green · cool · closest name: yellow
RGB
175, 204, 33
HSL
70°, 72%, 47%
CMYK
14, 0, 84, 20
Luminance
0.5241
Every format
| HEX | #afcc21 |
| RGB | rgb(175, 204, 33) |
| HSL | hsl(70, 72%, 47%) |
| CMYK | cmyk(14%, 0%, 84%, 20%) |
| LAB | lab(77.5 -29.9 72.6) |
| LCH | lch(77.5 78.5 112.3) |
| OKLCH | oklch(0.796 0.181 119.8) |
Copy-ready code
/* CSS */
color: #afcc21;
background-color: #afcc21;
/* Tailwind (arbitrary) */
class="text-[#afcc21] bg-[#afcc21]"
/* SCSS */
$brand: #afcc21;
/* SwiftUI */
Color(red: 0.686, green: 0.800, blue: 0.129)
/* Android */
Color.parseColor("#afcc21")Accessibility — WCAG contrast
Aa
#afcc21 on white: 1.83:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#afcc21 on black: 11.48:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green80.0%
Blue12.9%
CMYK percentages
Cyan14.2%
Magenta0.0%
Yellow83.8%
Key (black)20.0%
Color previews
#afcc21 text on a black background
contrast 11.48:1
Card sample
#afcc21 text on a white background
contrast 1.83:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #afcc21;
Background color
Panel with #afcc21 background
background-color: #afcc21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #afcc21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 204, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 204, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afcc21; background: linear-gradient(135deg, #afcc21, #3DCC21);