Skip to content

#affc28

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

RGB
175, 252, 40
HSL
82°, 97%, 57%
CMYK
31, 0, 84, 1
Luminance
0.7889

Every format

HEX#affc28
RGBrgb(175, 252, 40)
HSLhsl(82, 97%, 57%)
CMYKcmyk(31%, 0%, 84%, 1%)
LABlab(91.2 -50.8 82.8)
LCHlch(91.2 97.1 121.5)
OKLCHoklch(0.907 0.232 129.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#affc28 on white: 1.25:1
AA ✗ fail · AA-large · AAA
Aa
#affc28 on black: 16.78:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green98.8%
Blue15.7%

CMYK percentages

Cyan30.6%
Magenta0.0%
Yellow84.1%
Key (black)1.2%

Color previews

#affc28 text on a black background

contrast 16.78:1

Card sample

#affc28 text on a white background

contrast 1.25:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #affc28

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #affc28 in the Color Lab