Skip to content

#afde21

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

RGB
175, 222, 33
HSL
75°, 74%, 50%
CMYK
21, 0, 85, 13
Luminance
0.6147

Every format

HEX#afde21
RGBrgb(175, 222, 33)
HSLhsl(75, 74%, 50%)
CMYKcmyk(21%, 0%, 85%, 13%)
LABlab(82.6 -38.1 77.0)
LCHlch(82.6 85.9 116.3)
OKLCHoklch(0.837 0.201 124.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afde21 on white: 1.58:1
AA ✗ fail · AA-large · AAA
Aa
#afde21 on black: 13.29:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green87.1%
Blue12.9%

CMYK percentages

Cyan21.2%
Magenta0.0%
Yellow85.1%
Key (black)12.9%

Color previews

#afde21 text on a black background

contrast 13.29:1

Card sample

#afde21 text on a white background

contrast 1.58:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afde21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afde21 in the Color Lab