#afdf98
a light, vivid green · cool · closest name: khaki
RGB
175, 223, 152
HSL
101°, 53%, 74%
CMYK
22, 0, 32, 13
Luminance
0.6416
Every format
| HEX | #afdf98 |
| RGB | rgb(175, 223, 152) |
| HSL | hsl(101, 53%, 74%) |
| CMYK | cmyk(22%, 0%, 32%, 13%) |
| LAB | lab(84.0 -28.3 29.9) |
| LCH | lch(84.0 41.2 133.5) |
| OKLCH | oklch(0.853 0.107 135.8) |
Copy-ready code
/* CSS */
color: #afdf98;
background-color: #afdf98;
/* Tailwind (arbitrary) */
class="text-[#afdf98] bg-[#afdf98]"
/* SCSS */
$brand: #afdf98;
/* SwiftUI */
Color(red: 0.686, green: 0.875, blue: 0.596)
/* Android */
Color.parseColor("#afdf98")Accessibility — WCAG contrast
Aa
#afdf98 on white: 1.52:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#afdf98 on black: 13.83:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green87.5%
Blue59.6%
CMYK percentages
Cyan21.5%
Magenta0.0%
Yellow31.8%
Key (black)12.5%
Color previews
#afdf98 text on a black background
contrast 13.83:1
Card sample
#afdf98 text on a white background
contrast 1.52:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #afdf98;
Background color
Panel with #afdf98 background
background-color: #afdf98;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #afdf98;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 223, 152, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 223, 152, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afdf98; background: linear-gradient(135deg, #afdf98, #98DFB0);