Skip to content

#afeb2f

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

RGB
175, 235, 47
HSL
79°, 83%, 55%
CMYK
26, 0, 80, 8
Luminance
0.6874

Every format

HEX#afeb2f
RGBrgb(175, 235, 47)
HSLhsl(79, 83%, 55%)
CMYKcmyk(26%, 0%, 80%, 8%)
LABlab(86.4 -43.4 76.9)
LCHlch(86.4 88.3 119.4)
OKLCHoklch(0.868 0.210 126.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afeb2f on white: 1.42:1
AA ✗ fail · AA-large · AAA
Aa
#afeb2f on black: 14.75:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green92.2%
Blue18.4%

CMYK percentages

Cyan25.5%
Magenta0.0%
Yellow80.0%
Key (black)7.8%

Color previews

#afeb2f text on a black background

contrast 14.75:1

Card sample

#afeb2f text on a white background

contrast 1.42:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 235, 47, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 235, 47, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afeb2f;
background: linear-gradient(135deg, #afeb2f, #32EB2F);

Monochromatic scale

Palettes built from #afeb2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afeb2f in the Color Lab