#afd31f
a balanced, vivid green · cool · closest name: yellow
RGB
175, 211, 31
HSL
72°, 74%, 48%
CMYK
17, 0, 85, 17
Luminance
0.5580
Every format
| HEX | #afd31f |
| RGB | rgb(175, 211, 31) |
| HSL | hsl(72, 74%, 48%) |
| CMYK | cmyk(17%, 0%, 85%, 17%) |
| LAB | lab(79.5 -33.2 74.7) |
| LCH | lch(79.5 81.8 113.9) |
| OKLCH | oklch(0.812 0.189 121.5) |
Copy-ready code
/* CSS */
color: #afd31f;
background-color: #afd31f;
/* Tailwind (arbitrary) */
class="text-[#afd31f] bg-[#afd31f]"
/* SCSS */
$brand: #afd31f;
/* SwiftUI */
Color(red: 0.686, green: 0.827, blue: 0.122)
/* Android */
Color.parseColor("#afd31f")Accessibility — WCAG contrast
Aa
#afd31f on white: 1.73:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#afd31f on black: 12.16:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green82.7%
Blue12.2%
CMYK percentages
Cyan17.1%
Magenta0.0%
Yellow85.3%
Key (black)17.3%
Color previews
#afd31f text on a black background
contrast 12.16:1
Card sample
#afd31f text on a white background
contrast 1.73:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #afd31f;
Background color
Panel with #afd31f background
background-color: #afd31f;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #afd31f;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 211, 31, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 211, 31, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afd31f; background: linear-gradient(135deg, #afd31f, #37D31F);