Skip to content

#afda2f

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

RGB
175, 218, 47
HSL
75°, 70%, 52%
CMYK
20, 0, 78, 15
Luminance
0.5946

Every format

HEX#afda2f
RGBrgb(175, 218, 47)
HSLhsl(75, 70%, 52%)
CMYKcmyk(20%, 0%, 78%, 15%)
LABlab(81.5 -35.8 72.6)
LCHlch(81.5 81.0 116.3)
OKLCHoklch(0.829 0.191 123.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afda2f on white: 1.63:1
AA ✗ fail · AA-large · AAA
Aa
#afda2f on black: 12.89:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green85.5%
Blue18.4%

CMYK percentages

Cyan19.7%
Magenta0.0%
Yellow78.4%
Key (black)14.5%

Color previews

#afda2f text on a black background

contrast 12.89:1

Card sample

#afda2f text on a white background

contrast 1.63:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afda2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afda2f in the Color Lab