Skip to content

#afeb2c

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

RGB
175, 235, 44
HSL
79°, 83%, 55%
CMYK
26, 0, 81, 8
Luminance
0.6871

Every format

HEX#afeb2c
RGBrgb(175, 235, 44)
HSLhsl(79, 83%, 55%)
CMYKcmyk(26%, 0%, 81%, 8%)
LABlab(86.4 -43.5 77.7)
LCHlch(86.4 89.0 119.2)
OKLCHoklch(0.868 0.211 126.7)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red68.6%
Green92.2%
Blue17.3%

CMYK percentages

Cyan25.5%
Magenta0.0%
Yellow81.3%
Key (black)7.8%

Color previews

#afeb2c text on a black background

contrast 14.74:1

Card sample

#afeb2c text on a white background

contrast 1.42:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afeb2c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afeb2c in the Color Lab