Skip to content

#afcc77

a balanced, vivid green · cool · closest name: khaki

RGB
175, 204, 119
HSL
81°, 46%, 63%
CMYK
14, 0, 42, 20
Luminance
0.5363

Every format

HEX#afcc77
RGBrgb(175, 204, 119)
HSLhsl(81, 46%, 63%)
CMYKcmyk(14%, 0%, 42%, 20%)
LABlab(78.3 -23.6 39.1)
LCHlch(78.3 45.7 121.1)
OKLCHoklch(0.804 0.115 124.3)

Copy-ready code

/* CSS */
color: #afcc77;
background-color: #afcc77;
/* Tailwind (arbitrary) */
class="text-[#afcc77] bg-[#afcc77]"
/* SCSS */
$brand: #afcc77;
/* SwiftUI */
Color(red: 0.686, green: 0.800, blue: 0.467)
/* Android */
Color.parseColor("#afcc77")

Accessibility — WCAG contrast

Aa
#afcc77 on white: 1.79:1
AA ✗ fail · AA-large · AAA
Aa
#afcc77 on black: 11.73:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green80.0%
Blue46.7%

CMYK percentages

Cyan14.2%
Magenta0.0%
Yellow41.7%
Key (black)20.0%

Color previews

#afcc77 text on a black background

contrast 11.73:1

Card sample

#afcc77 text on a white background

contrast 1.79:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #afcc77;
Background color
Panel with #afcc77 background
background-color: #afcc77;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #afcc77;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(175, 204, 119, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 204, 119, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afcc77;
background: linear-gradient(135deg, #afcc77, #77CC78);

Monochromatic scale

Palettes built from #afcc77

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afcc77 in the Color Lab