Skip to content

#afcc39

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

RGB
175, 204, 57
HSL
72°, 59%, 51%
CMYK
14, 0, 72, 20
Luminance
0.5260

Every format

HEX#afcc39
RGBrgb(175, 204, 57)
HSLhsl(72, 59%, 51%)
CMYKcmyk(14%, 0%, 72%, 20%)
LABlab(77.6 -28.9 65.8)
LCHlch(77.6 71.8 113.7)
OKLCHoklch(0.797 0.169 120.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afcc39 on white: 1.82:1
AA ✗ fail · AA-large · AAA
Aa
#afcc39 on black: 11.52:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green80.0%
Blue22.4%

CMYK percentages

Cyan14.2%
Magenta0.0%
Yellow72.1%
Key (black)20.0%

Color previews

#afcc39 text on a black background

contrast 11.52:1

Card sample

#afcc39 text on a white background

contrast 1.82:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afcc39

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afcc39 in the Color Lab