Skip to content

#afdf3b

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

RGB
175, 223, 59
HSL
78°, 72%, 55%
CMYK
22, 0, 74, 13
Luminance
0.6221

Every format

HEX#afdf3b
RGBrgb(175, 223, 59)
HSLhsl(78, 72%, 55%)
CMYKcmyk(22%, 0%, 74%, 13%)
LABlab(83.0 -37.5 70.3)
LCHlch(83.0 79.7 118.1)
OKLCHoklch(0.841 0.190 124.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afdf3b on white: 1.56:1
AA ✗ fail · AA-large · AAA
Aa
#afdf3b on black: 13.44:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green87.5%
Blue23.1%

CMYK percentages

Cyan21.5%
Magenta0.0%
Yellow73.5%
Key (black)12.5%

Color previews

#afdf3b text on a black background

contrast 13.44:1

Card sample

#afdf3b text on a white background

contrast 1.56:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afdf3b

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afdf3b in the Color Lab