#afd270
a balanced, vivid green · cool · closest name: khaki
RGB
175, 210, 112
HSL
81°, 52%, 63%
CMYK
17, 0, 47, 18
Luminance
0.5638
Every format
| HEX | #afd270 |
| RGB | rgb(175, 210, 112) |
| HSL | hsl(81, 52%, 63%) |
| CMYK | cmyk(17%, 0%, 47%, 18%) |
| LAB | lab(79.8 -27.3 44.6) |
| LCH | lch(79.8 52.3 121.5) |
| OKLCH | oklch(0.817 0.131 125.3) |
Copy-ready code
/* CSS */
color: #afd270;
background-color: #afd270;
/* Tailwind (arbitrary) */
class="text-[#afd270] bg-[#afd270]"
/* SCSS */
$brand: #afd270;
/* SwiftUI */
Color(red: 0.686, green: 0.824, blue: 0.439)
/* Android */
Color.parseColor("#afd270")Accessibility — WCAG contrast
Aa
#afd270 on white: 1.71:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#afd270 on black: 12.28:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green82.4%
Blue43.9%
CMYK percentages
Cyan16.7%
Magenta0.0%
Yellow46.7%
Key (black)17.6%
Color previews
#afd270 text on a black background
contrast 12.28:1
Card sample
#afd270 text on a white background
contrast 1.71:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #afd270;
Background color
Panel with #afd270 background
background-color: #afd270;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #afd270;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 210, 112, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 210, 112, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afd270; background: linear-gradient(135deg, #afd270, #70D272);