Skip to content

#afd22c

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

RGB
175, 210, 44
HSL
73°, 65%, 50%
CMYK
17, 0, 79, 18
Luminance
0.5539

Every format

HEX#afd22c
RGBrgb(175, 210, 44)
HSLhsl(73, 65%, 50%)
CMYKcmyk(17%, 0%, 79%, 18%)
LABlab(79.3 -32.3 71.4)
LCHlch(79.3 78.3 114.3)
OKLCHoklch(0.810 0.183 121.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afd22c on white: 1.74:1
AA ✗ fail · AA-large · AAA
Aa
#afd22c on black: 12.08:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green82.4%
Blue17.3%

CMYK percentages

Cyan16.7%
Magenta0.0%
Yellow79.0%
Key (black)17.6%

Color previews

#afd22c text on a black background

contrast 12.08:1

Card sample

#afd22c text on a white background

contrast 1.74:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 210, 44, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 210, 44, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afd22c;
background: linear-gradient(135deg, #afd22c, #40D22C);

Monochromatic scale

Palettes built from #afd22c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afd22c in the Color Lab