#afd402
a dark, electric green · cool · closest name: yellow
RGB
175, 212, 2
HSL
71°, 98%, 42%
CMYK
18, 0, 99, 17
Luminance
0.5621
Every format
| HEX | #afd402 |
| RGB | rgb(175, 212, 2) |
| HSL | hsl(71, 98%, 42%) |
| CMYK | cmyk(18%, 0%, 99%, 17%) |
| LAB | lab(79.7 -34.1 78.8) |
| LCH | lch(79.7 85.9 113.4) |
| OKLCH | oklch(0.814 0.196 121.5) |
Copy-ready code
/* CSS */
color: #afd402;
background-color: #afd402;
/* Tailwind (arbitrary) */
class="text-[#afd402] bg-[#afd402]"
/* SCSS */
$brand: #afd402;
/* SwiftUI */
Color(red: 0.686, green: 0.831, blue: 0.008)
/* Android */
Color.parseColor("#afd402")Accessibility — WCAG contrast
Aa
#afd402 on white: 1.72:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#afd402 on black: 12.24:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green83.1%
Blue0.8%
CMYK percentages
Cyan17.5%
Magenta0.0%
Yellow99.1%
Key (black)16.9%
Color previews
#afd402 text on a black background
contrast 12.24:1
Card sample
#afd402 text on a white background
contrast 1.72:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #afd402;
Background color
Panel with #afd402 background
background-color: #afd402;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #afd402;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 212, 2, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 212, 2, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afd402; background: linear-gradient(135deg, #afd402, #23D402);