#afd80c
a dark, electric green · cool · closest name: yellow
RGB
175, 216, 12
HSL
72°, 90%, 45%
CMYK
19, 0, 94, 15
Luminance
0.5825
Every format
| HEX | #afd80c |
| RGB | rgb(175, 216, 12) |
| HSL | hsl(72, 90%, 45%) |
| CMYK | cmyk(19%, 0%, 94%, 15%) |
| LAB | lab(80.9 -35.8 78.8) |
| LCH | lch(80.9 86.5 114.5) |
| OKLCH | oklch(0.823 0.199 122.5) |
Copy-ready code
/* CSS */
color: #afd80c;
background-color: #afd80c;
/* Tailwind (arbitrary) */
class="text-[#afd80c] bg-[#afd80c]"
/* SCSS */
$brand: #afd80c;
/* SwiftUI */
Color(red: 0.686, green: 0.847, blue: 0.047)
/* Android */
Color.parseColor("#afd80c")Accessibility — WCAG contrast
Aa
#afd80c on white: 1.66:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#afd80c on black: 12.65:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green84.7%
Blue4.7%
CMYK percentages
Cyan19.0%
Magenta0.0%
Yellow94.4%
Key (black)15.3%
Color previews
#afd80c text on a black background
contrast 12.65:1
Card sample
#afd80c text on a white background
contrast 1.66:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #afd80c;
Background color
Panel with #afd80c background
background-color: #afd80c;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #afd80c;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 216, 12, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 216, 12, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afd80c; background: linear-gradient(135deg, #afd80c, #27D80C);