Skip to content

#afcc2d

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

RGB
175, 204, 45
HSL
71°, 64%, 49%
CMYK
14, 0, 78, 20
Luminance
0.5249

Every format

HEX#afcc2d
RGBrgb(175, 204, 45)
HSLhsl(71, 64%, 49%)
CMYKcmyk(14%, 0%, 78%, 20%)
LABlab(77.6 -29.4 69.6)
LCHlch(77.6 75.5 112.9)
OKLCHoklch(0.797 0.176 120.0)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

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

CMYK percentages

Cyan14.2%
Magenta0.0%
Yellow77.9%
Key (black)20.0%

Color previews

#afcc2d text on a black background

contrast 11.50:1

Card sample

#afcc2d text on a white background

contrast 1.83:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afcc2d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afcc2d in the Color Lab