Skip to content

#afe921

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

RGB
175, 233, 33
HSL
77°, 82%, 52%
CMYK
25, 0, 86, 9
Luminance
0.6750

Every format

HEX#afe921
RGBrgb(175, 233, 33)
HSLhsl(77, 82%, 52%)
CMYKcmyk(25%, 0%, 86%, 9%)
LABlab(85.8 -43.0 79.6)
LCHlch(85.8 90.4 118.4)
OKLCHoklch(0.863 0.213 126.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afe921 on white: 1.45:1
AA ✗ fail · AA-large · AAA
Aa
#afe921 on black: 14.50:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green91.4%
Blue12.9%

CMYK percentages

Cyan24.9%
Magenta0.0%
Yellow85.8%
Key (black)8.6%

Color previews

#afe921 text on a black background

contrast 14.50:1

Card sample

#afe921 text on a white background

contrast 1.45:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afe921

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afe921 in the Color Lab