#afd472
a balanced, vivid green · cool · closest name: khaki
RGB
175, 212, 114
HSL
83°, 53%, 64%
CMYK
18, 0, 46, 17
Luminance
0.5742
Every format
| HEX | #afd472 |
| RGB | rgb(175, 212, 114) |
| HSL | hsl(83, 53%, 64%) |
| CMYK | cmyk(18%, 0%, 46%, 17%) |
| LAB | lab(80.4 -28.0 44.3) |
| LCH | lch(80.4 52.4 122.3) |
| OKLCH | oklch(0.821 0.132 126.1) |
Copy-ready code
/* CSS */
color: #afd472;
background-color: #afd472;
/* Tailwind (arbitrary) */
class="text-[#afd472] bg-[#afd472]"
/* SCSS */
$brand: #afd472;
/* SwiftUI */
Color(red: 0.686, green: 0.831, blue: 0.447)
/* Android */
Color.parseColor("#afd472")Accessibility — WCAG contrast
Aa
#afd472 on white: 1.68:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#afd472 on black: 12.48:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green83.1%
Blue44.7%
CMYK percentages
Cyan17.5%
Magenta0.0%
Yellow46.2%
Key (black)16.9%
Color previews
#afd472 text on a black background
contrast 12.48:1
Card sample
#afd472 text on a white background
contrast 1.68:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #afd472;
Background color
Panel with #afd472 background
background-color: #afd472;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #afd472;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 212, 114, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 212, 114, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afd472; background: linear-gradient(135deg, #afd472, #72D476);