Skip to content

#afef21

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

RGB
175, 239, 33
HSL
79°, 87%, 53%
CMYK
27, 0, 86, 6
Luminance
0.7096

Every format

HEX#afef21
RGBrgb(175, 239, 33)
HSLhsl(79, 87%, 53%)
CMYKcmyk(27%, 0%, 86%, 6%)
LABlab(87.5 -45.5 81.0)
LCHlch(87.5 92.9 119.3)
OKLCHoklch(0.877 0.219 127.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afef21 on white: 1.38:1
AA ✗ fail · AA-large · AAA
Aa
#afef21 on black: 15.19:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green93.7%
Blue12.9%

CMYK percentages

Cyan26.8%
Magenta0.0%
Yellow86.2%
Key (black)6.3%

Color previews

#afef21 text on a black background

contrast 15.19:1

Card sample

#afef21 text on a white background

contrast 1.38:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afef21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afef21 in the Color Lab