Skip to content

#afdb2f

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

RGB
175, 219, 47
HSL
75°, 71%, 52%
CMYK
20, 0, 79, 14
Luminance
0.5998

Every format

HEX#afdb2f
RGBrgb(175, 219, 47)
HSLhsl(75, 71%, 52%)
CMYKcmyk(20%, 0%, 79%, 14%)
LABlab(81.8 -36.3 72.8)
LCHlch(81.8 81.4 116.5)
OKLCHoklch(0.831 0.192 123.7)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red68.6%
Green85.9%
Blue18.4%

CMYK percentages

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

Color previews

#afdb2f text on a black background

contrast 13.00:1

Card sample

#afdb2f text on a white background

contrast 1.62:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afdb2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afdb2f in the Color Lab