Skip to content

#afdb2d

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

RGB
175, 219, 45
HSL
75°, 71%, 52%
CMYK
20, 0, 80, 14
Luminance
0.5997

Every format

HEX#afdb2d
RGBrgb(175, 219, 45)
HSLhsl(75, 71%, 52%)
CMYKcmyk(20%, 0%, 80%, 14%)
LABlab(81.8 -36.4 73.4)
LCHlch(81.8 81.9 116.4)
OKLCHoklch(0.831 0.193 123.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afdb2d on white: 1.62:1
AA ✗ fail · AA-large · AAA
Aa
#afdb2d on black: 12.99:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green85.9%
Blue17.6%

CMYK percentages

Cyan20.1%
Magenta0.0%
Yellow79.5%
Key (black)14.1%

Color previews

#afdb2d text on a black background

contrast 12.99:1

Card sample

#afdb2d text on a white background

contrast 1.62:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afdb2d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afdb2d in the Color Lab