#afd28c
a light, soft green · cool · closest name: khaki
RGB
175, 210, 140
HSL
90°, 44%, 69%
CMYK
17, 0, 33, 18
Luminance
0.5710
Every format
| HEX | #afd28c |
| RGB | rgb(175, 210, 140) |
| HSL | hsl(90, 44%, 69%) |
| CMYK | cmyk(17%, 0%, 33%, 18%) |
| LAB | lab(80.2 -23.8 31.0) |
| LCH | lch(80.2 39.1 127.5) |
| OKLCH | oklch(0.821 0.101 130.0) |
Copy-ready code
/* CSS */
color: #afd28c;
background-color: #afd28c;
/* Tailwind (arbitrary) */
class="text-[#afd28c] bg-[#afd28c]"
/* SCSS */
$brand: #afd28c;
/* SwiftUI */
Color(red: 0.686, green: 0.824, blue: 0.549)
/* Android */
Color.parseColor("#afd28c")Accessibility — WCAG contrast
Aa
#afd28c on white: 1.69:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#afd28c on black: 12.42:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green82.4%
Blue54.9%
CMYK percentages
Cyan16.7%
Magenta0.0%
Yellow33.3%
Key (black)17.6%
Color previews
#afd28c text on a black background
contrast 12.42:1
Card sample
#afd28c text on a white background
contrast 1.69:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #afd28c;
Background color
Panel with #afd28c background
background-color: #afd28c;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #afd28c;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 210, 140, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 210, 140, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afd28c; background: linear-gradient(135deg, #afd28c, #8CD298);