Skip to content

#aafb21

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

RGB
170, 251, 33
HSL
82°, 97%, 56%
CMYK
32, 0, 87, 2
Luminance
0.7765

Every format

HEX#aafb21
RGBrgb(170, 251, 33)
HSLhsl(82, 97%, 56%)
CMYKcmyk(32%, 0%, 87%, 2%)
LABlab(90.6 -52.3 83.6)
LCHlch(90.6 98.6 122.1)
OKLCHoklch(0.902 0.235 129.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#aafb21 on white: 1.27:1
AA ✗ fail · AA-large · AAA
Aa
#aafb21 on black: 16.53:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red66.7%
Green98.4%
Blue12.9%

CMYK percentages

Cyan32.3%
Magenta0.0%
Yellow86.9%
Key (black)1.6%

Color previews

#aafb21 text on a black background

contrast 16.53:1

Card sample

#aafb21 text on a white background

contrast 1.27:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(170, 251, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(170, 251, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #aafb21;
background: linear-gradient(135deg, #aafb21, #21FB29);

Monochromatic scale

Palettes built from #aafb21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #aafb21 in the Color Lab