Skip to content

#afeb21

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

RGB
175, 235, 33
HSL
78°, 84%, 53%
CMYK
26, 0, 86, 8
Luminance
0.6864

Every format

HEX#afeb21
RGBrgb(175, 235, 33)
HSLhsl(78, 84%, 53%)
CMYKcmyk(26%, 0%, 86%, 8%)
LABlab(86.3 -43.8 80.1)
LCHlch(86.3 91.3 118.7)
OKLCHoklch(0.867 0.215 126.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afeb21 on white: 1.43:1
AA ✗ fail · AA-large · AAA
Aa
#afeb21 on black: 14.73:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green92.2%
Blue12.9%

CMYK percentages

Cyan25.5%
Magenta0.0%
Yellow86.0%
Key (black)7.8%

Color previews

#afeb21 text on a black background

contrast 14.73:1

Card sample

#afeb21 text on a white background

contrast 1.43:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afeb21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afeb21 in the Color Lab