Skip to content

#afef4f

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

RGB
175, 239, 79
HSL
84°, 83%, 62%
CMYK
27, 0, 67, 6
Luminance
0.7141

Every format

HEX#afef4f
RGBrgb(175, 239, 79)
HSLhsl(84, 83%, 62%)
CMYKcmyk(27%, 0%, 67%, 6%)
LABlab(87.7 -43.4 67.9)
LCHlch(87.7 80.6 122.6)
OKLCHoklch(0.879 0.197 128.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afef4f on white: 1.37:1
AA ✗ fail · AA-large · AAA
Aa
#afef4f on black: 15.28:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green93.7%
Blue31.0%

CMYK percentages

Cyan26.8%
Magenta0.0%
Yellow66.9%
Key (black)6.3%

Color previews

#afef4f text on a black background

contrast 15.28:1

Card sample

#afef4f text on a white background

contrast 1.37:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afef4f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afef4f in the Color Lab