#afd220
a balanced, vivid green · cool · closest name: yellow
RGB
175, 210, 32
HSL
72°, 74%, 48%
CMYK
17, 0, 85, 18
Luminance
0.5531
Every format
| HEX | #afd220 |
| RGB | rgb(175, 210, 32) |
| HSL | hsl(72, 74%, 48%) |
| CMYK | cmyk(17%, 0%, 85%, 18%) |
| LAB | lab(79.2 -32.7 74.3) |
| LCH | lch(79.2 81.2 113.7) |
| OKLCH | oklch(0.810 0.188 121.3) |
Copy-ready code
/* CSS */
color: #afd220;
background-color: #afd220;
/* Tailwind (arbitrary) */
class="text-[#afd220] bg-[#afd220]"
/* SCSS */
$brand: #afd220;
/* SwiftUI */
Color(red: 0.686, green: 0.824, blue: 0.125)
/* Android */
Color.parseColor("#afd220")Accessibility — WCAG contrast
Aa
#afd220 on white: 1.74:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#afd220 on black: 12.06:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green82.4%
Blue12.5%
CMYK percentages
Cyan16.7%
Magenta0.0%
Yellow84.8%
Key (black)17.6%
Color previews
#afd220 text on a black background
contrast 12.06:1
Card sample
#afd220 text on a white background
contrast 1.74:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #afd220;
Background color
Panel with #afd220 background
background-color: #afd220;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #afd220;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 210, 32, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 210, 32, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afd220; background: linear-gradient(135deg, #afd220, #38D220);