Skip to content

#afdf28

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

RGB
175, 223, 40
HSL
76°, 74%, 52%
CMYK
22, 0, 82, 13
Luminance
0.6204

Every format

HEX#afdf28
RGBrgb(175, 223, 40)
HSLhsl(76, 74%, 52%)
CMYKcmyk(22%, 0%, 82%, 13%)
LABlab(82.9 -38.3 75.7)
LCHlch(82.9 84.8 116.9)
OKLCHoklch(0.840 0.199 124.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afdf28 on white: 1.57:1
AA ✗ fail · AA-large · AAA
Aa
#afdf28 on black: 13.41:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green87.5%
Blue15.7%

CMYK percentages

Cyan21.5%
Magenta0.0%
Yellow82.1%
Key (black)12.5%

Color previews

#afdf28 text on a black background

contrast 13.41:1

Card sample

#afdf28 text on a white background

contrast 1.57:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afdf28

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afdf28 in the Color Lab