#afd27c
a light, vivid green · cool · closest name: khaki
RGB
175, 210, 124
HSL
84°, 49%, 66%
CMYK
17, 0, 41, 18
Luminance
0.5666
Every format
| HEX | #afd27c |
| RGB | rgb(175, 210, 124) |
| HSL | hsl(84, 49%, 66%) |
| CMYK | cmyk(17%, 0%, 41%, 18%) |
| LAB | lab(80.0 -25.9 38.8) |
| LCH | lch(80.0 46.7 123.7) |
| OKLCH | oklch(0.818 0.119 126.9) |
Copy-ready code
/* CSS */
color: #afd27c;
background-color: #afd27c;
/* Tailwind (arbitrary) */
class="text-[#afd27c] bg-[#afd27c]"
/* SCSS */
$brand: #afd27c;
/* SwiftUI */
Color(red: 0.686, green: 0.824, blue: 0.486)
/* Android */
Color.parseColor("#afd27c")Accessibility — WCAG contrast
Aa
#afd27c on white: 1.70:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#afd27c on black: 12.33:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green82.4%
Blue48.6%
CMYK percentages
Cyan16.7%
Magenta0.0%
Yellow41.0%
Key (black)17.6%
Color previews
#afd27c text on a black background
contrast 12.33:1
Card sample
#afd27c text on a white background
contrast 1.70:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #afd27c;
Background color
Panel with #afd27c background
background-color: #afd27c;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #afd27c;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 210, 124, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 210, 124, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afd27c; background: linear-gradient(135deg, #afd27c, #7CD282);