Skip to content

#afec28

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

RGB
175, 236, 40
HSL
79°, 84%, 54%
CMYK
26, 0, 83, 8
Luminance
0.6926

Every format

HEX#afec28
RGBrgb(175, 236, 40)
HSLhsl(79, 84%, 54%)
CMYKcmyk(26%, 0%, 83%, 8%)
LABlab(86.6 -44.0 78.9)
LCHlch(86.6 90.3 119.2)
OKLCHoklch(0.870 0.214 126.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afec28 on white: 1.41:1
AA ✗ fail · AA-large · AAA
Aa
#afec28 on black: 14.85:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green92.5%
Blue15.7%

CMYK percentages

Cyan25.8%
Magenta0.0%
Yellow83.1%
Key (black)7.5%

Color previews

#afec28 text on a black background

contrast 14.85:1

Card sample

#afec28 text on a white background

contrast 1.41:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afec28

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afec28 in the Color Lab