Skip to content

#afd921

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

RGB
175, 217, 33
HSL
74°, 74%, 49%
CMYK
19, 0, 85, 15
Luminance
0.5885

Every format

HEX#afd921
RGBrgb(175, 217, 33)
HSLhsl(74, 74%, 49%)
CMYKcmyk(19%, 0%, 85%, 15%)
LABlab(81.2 -35.9 75.8)
LCHlch(81.2 83.8 115.3)
OKLCHoklch(0.826 0.195 122.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afd921 on white: 1.64:1
AA ✗ fail · AA-large · AAA
Aa
#afd921 on black: 12.77:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green85.1%
Blue12.9%

CMYK percentages

Cyan19.4%
Magenta0.0%
Yellow84.8%
Key (black)14.9%

Color previews

#afd921 text on a black background

contrast 12.77:1

Card sample

#afd921 text on a white background

contrast 1.64:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 217, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 217, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afd921;
background: linear-gradient(135deg, #afd921, #34D921);

Monochromatic scale

Palettes built from #afd921

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afd921 in the Color Lab