Skip to content

#afef1f

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

RGB
175, 239, 31
HSL
79°, 87%, 53%
CMYK
27, 0, 87, 6
Luminance
0.7095

Every format

HEX#afef1f
RGBrgb(175, 239, 31)
HSLhsl(79, 87%, 53%)
CMYKcmyk(27%, 0%, 87%, 6%)
LABlab(87.5 -45.6 81.4)
LCHlch(87.5 93.3 119.3)
OKLCHoklch(0.876 0.220 127.0)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red68.6%
Green93.7%
Blue12.2%

CMYK percentages

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

Color previews

#afef1f text on a black background

contrast 15.19:1

Card sample

#afef1f text on a white background

contrast 1.38:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afef1f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afef1f in the Color Lab