Skip to content

#afdc2d

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

RGB
175, 220, 45
HSL
75°, 71%, 52%
CMYK
21, 0, 80, 14
Luminance
0.6049

Every format

HEX#afdc2d
RGBrgb(175, 220, 45)
HSLhsl(75, 71%, 52%)
CMYKcmyk(21%, 0%, 80%, 14%)
LABlab(82.1 -36.8 73.7)
LCHlch(82.1 82.3 116.6)
OKLCHoklch(0.833 0.194 123.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afdc2d on white: 1.60:1
AA ✗ fail · AA-large · AAA
Aa
#afdc2d on black: 13.10:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green86.3%
Blue17.6%

CMYK percentages

Cyan20.5%
Magenta0.0%
Yellow79.5%
Key (black)13.7%

Color previews

#afdc2d text on a black background

contrast 13.10:1

Card sample

#afdc2d text on a white background

contrast 1.60:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afdc2d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afdc2d in the Color Lab