#afcc56
a balanced, vivid green · cool · closest name: olivedrab
RGB
175, 204, 86
HSL
75°, 54%, 57%
CMYK
14, 0, 58, 20
Luminance
0.5297
Every format
| HEX | #afcc56 |
| RGB | rgb(175, 204, 86) |
| HSL | hsl(75, 54%, 57%) |
| CMYK | cmyk(14%, 0%, 58%, 20%) |
| LAB | lab(77.9 -26.9 54.4) |
| LCH | lch(77.9 60.7 116.3) |
| OKLCH | oklch(0.800 0.148 121.4) |
Copy-ready code
/* CSS */
color: #afcc56;
background-color: #afcc56;
/* Tailwind (arbitrary) */
class="text-[#afcc56] bg-[#afcc56]"
/* SCSS */
$brand: #afcc56;
/* SwiftUI */
Color(red: 0.686, green: 0.800, blue: 0.337)
/* Android */
Color.parseColor("#afcc56")Accessibility — WCAG contrast
Aa
#afcc56 on white: 1.81:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#afcc56 on black: 11.59:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green80.0%
Blue33.7%
CMYK percentages
Cyan14.2%
Magenta0.0%
Yellow57.8%
Key (black)20.0%
Color previews
#afcc56 text on a black background
contrast 11.59:1
Card sample
#afcc56 text on a white background
contrast 1.81:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #afcc56;
Background color
Panel with #afcc56 background
background-color: #afcc56;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #afcc56;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 204, 86, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 204, 86, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afcc56; background: linear-gradient(135deg, #afcc56, #61CC56);