Skip to content

#afec2d

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

RGB
175, 236, 45
HSL
79°, 83%, 55%
CMYK
26, 0, 81, 8
Luminance
0.6929

Every format

HEX#afec2d
RGBrgb(175, 236, 45)
HSLhsl(79, 83%, 55%)
CMYKcmyk(26%, 0%, 81%, 8%)
LABlab(86.7 -43.9 77.7)
LCHlch(86.7 89.2 119.4)
OKLCHoklch(0.870 0.212 126.8)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red68.6%
Green92.5%
Blue17.6%

CMYK percentages

Cyan25.8%
Magenta0.0%
Yellow80.9%
Key (black)7.5%

Color previews

#afec2d text on a black background

contrast 14.86:1

Card sample

#afec2d text on a white background

contrast 1.41:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afec2d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afec2d in the Color Lab