Skip to content

#afeb28

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

RGB
175, 235, 40
HSL
79°, 83%, 54%
CMYK
26, 0, 83, 8
Luminance
0.6868

Every format

HEX#afeb28
RGBrgb(175, 235, 40)
HSLhsl(79, 83%, 54%)
CMYKcmyk(26%, 0%, 83%, 8%)
LABlab(86.3 -43.6 78.6)
LCHlch(86.3 89.9 119.0)
OKLCHoklch(0.868 0.213 126.6)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red68.6%
Green92.2%
Blue15.7%

CMYK percentages

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

Color previews

#afeb28 text on a black background

contrast 14.74:1

Card sample

#afeb28 text on a white background

contrast 1.43:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afeb28

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afeb28 in the Color Lab