Skip to content

#afcc2c

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

RGB
175, 204, 44
HSL
71°, 65%, 49%
CMYK
14, 0, 78, 20
Luminance
0.5248

Every format

HEX#afcc2c
RGBrgb(175, 204, 44)
HSLhsl(71, 65%, 49%)
CMYKcmyk(14%, 0%, 78%, 20%)
LABlab(77.6 -29.5 69.8)
LCHlch(77.6 75.8 112.9)
OKLCHoklch(0.797 0.176 119.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afcc2c on white: 1.83:1
AA ✗ fail · AA-large · AAA
Aa
#afcc2c on black: 11.50:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green80.0%
Blue17.3%

CMYK percentages

Cyan14.2%
Magenta0.0%
Yellow78.4%
Key (black)20.0%

Color previews

#afcc2c text on a black background

contrast 11.50:1

Card sample

#afcc2c text on a white background

contrast 1.83:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afcc2c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afcc2c in the Color Lab