Skip to content

#afdd2d

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

RGB
175, 221, 45
HSL
76°, 72%, 52%
CMYK
21, 0, 80, 13
Luminance
0.6102

Every format

HEX#afdd2d
RGBrgb(175, 221, 45)
HSLhsl(76, 72%, 52%)
CMYKcmyk(21%, 0%, 80%, 13%)
LABlab(82.4 -37.3 73.9)
LCHlch(82.4 82.8 116.8)
OKLCHoklch(0.836 0.195 124.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afdd2d on white: 1.59:1
AA ✗ fail · AA-large · AAA
Aa
#afdd2d on black: 13.20:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green86.7%
Blue17.6%

CMYK percentages

Cyan20.8%
Magenta0.0%
Yellow79.6%
Key (black)13.3%

Color previews

#afdd2d text on a black background

contrast 13.20:1

Card sample

#afdd2d text on a white background

contrast 1.59:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afdd2d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afdd2d in the Color Lab