Skip to content

#afef1e

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

RGB
175, 239, 30
HSL
78°, 87%, 53%
CMYK
27, 0, 87, 6
Luminance
0.7094

Every format

HEX#afef1e
RGBrgb(175, 239, 30)
HSLhsl(78, 87%, 53%)
CMYKcmyk(27%, 0%, 87%, 6%)
LABlab(87.5 -45.6 81.6)
LCHlch(87.5 93.5 119.2)
OKLCHoklch(0.876 0.220 127.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afef1e on white: 1.38:1
AA ✗ fail · AA-large · AAA
Aa
#afef1e on black: 15.19:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green93.7%
Blue11.8%

CMYK percentages

Cyan26.8%
Magenta0.0%
Yellow87.4%
Key (black)6.3%

Color previews

#afef1e text on a black background

contrast 15.19:1

Card sample

#afef1e text on a white background

contrast 1.38:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afef1e

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afef1e in the Color Lab