Skip to content

#afdf3a

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

RGB
175, 223, 58
HSL
78°, 72%, 55%
CMYK
22, 0, 74, 13
Luminance
0.6219

Every format

HEX#afdf3a
RGBrgb(175, 223, 58)
HSLhsl(78, 72%, 55%)
CMYKcmyk(22%, 0%, 74%, 13%)
LABlab(83.0 -37.6 70.6)
LCHlch(83.0 80.0 118.0)
OKLCHoklch(0.841 0.191 124.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afdf3a on white: 1.56:1
AA ✗ fail · AA-large · AAA
Aa
#afdf3a on black: 13.44:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green87.5%
Blue22.7%

CMYK percentages

Cyan21.5%
Magenta0.0%
Yellow74.0%
Key (black)12.5%

Color previews

#afdf3a text on a black background

contrast 13.44:1

Card sample

#afdf3a text on a white background

contrast 1.56:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 223, 58, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 223, 58, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afdf3a;
background: linear-gradient(135deg, #afdf3a, #41DF3A);

Monochromatic scale

Palettes built from #afdf3a

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afdf3a in the Color Lab