#afd781
a light, vivid green · cool · closest name: khaki
RGB
175, 215, 129
HSL
88°, 52%, 68%
CMYK
19, 0, 40, 16
Luminance
0.5930
Every format
| HEX | #afd781 |
| RGB | rgb(175, 215, 129) |
| HSL | hsl(88, 52%, 68%) |
| CMYK | cmyk(19%, 0%, 40%, 16%) |
| LAB | lab(81.5 -27.7 38.2) |
| LCH | lch(81.5 47.2 125.9) |
| OKLCH | oklch(0.831 0.121 129.1) |
Copy-ready code
/* CSS */
color: #afd781;
background-color: #afd781;
/* Tailwind (arbitrary) */
class="text-[#afd781] bg-[#afd781]"
/* SCSS */
$brand: #afd781;
/* SwiftUI */
Color(red: 0.686, green: 0.843, blue: 0.506)
/* Android */
Color.parseColor("#afd781")Accessibility — WCAG contrast
Aa
#afd781 on white: 1.63:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#afd781 on black: 12.86:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green84.3%
Blue50.6%
CMYK percentages
Cyan18.6%
Magenta0.0%
Yellow40.0%
Key (black)15.7%
Color previews
#afd781 text on a black background
contrast 12.86:1
Card sample
#afd781 text on a white background
contrast 1.63:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #afd781;
Background color
Panel with #afd781 background
background-color: #afd781;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #afd781;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 215, 129, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 215, 129, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afd781; background: linear-gradient(135deg, #afd781, #81D78D);